1//////////////////////////////////////////////////////////////////////////////
2//
3// (C) Copyright Ion Gaztanaga 2014-2014. Distributed under the Boost
4// Software License, Version 1.0. (See accompanying file
5// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6//
7// See http://www.boost.org/libs/interprocess for documentation.
8//
9//////////////////////////////////////////////////////////////////////////////
10#include <boost/interprocess/detail/workaround.hpp>
11
12#ifdef BOOST_INTERPROCESS_WINDOWS
13#include <windows.h>
14
15#include <boost/interprocess/windows_shared_memory.hpp>
16
17using namespace boost::interprocess;
18
19int main ()
20{
21 windows_shared_memory dummy;
22 static_cast<void>(dummy);
23 return 0;
24}
25
26#else
27
28int main()
29{
30 return 0;
31}
32
33#endif
34

source code of boost/libs/interprocess/test/include_but_no_use_windows_h.cpp