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#define _WIN32_WINNT 0x0501
11#define BOOST_USE_WINDOWS_H
12
13#include <boost/interprocess/detail/workaround.hpp>
14
15#ifdef BOOST_INTERPROCESS_WINDOWS
16
17#include <boost/interprocess/windows_shared_memory.hpp>
18
19using namespace boost::interprocess;
20
21int main ()
22{
23 windows_shared_memory dummy;
24 static_cast<void>(dummy);
25 return 0;
26}
27
28#else
29
30int main()
31{
32 return 0;
33}
34
35#endif
36

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