forked from boostorg/interprocess
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathboost_use_windows_h.cpp
38 lines (29 loc) · 908 Bytes
/
boost_use_windows_h.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//////////////////////////////////////////////////////////////////////////////
//
// (C) Copyright Ion Gaztanaga 2014-2014. Distributed under the Boost
// Software License, Version 1.0. (See accompanying file
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
// See http://www.boost.org/libs/interprocess for documentation.
//
//////////////////////////////////////////////////////////////////////////////
#define _WIN32_WINNT 0x0501
#define BOOST_USE_WINDOWS_H
#include <boost/interprocess/detail/config_begin.hpp>
#include <boost/interprocess/detail/workaround.hpp>
#ifdef BOOST_INTERPROCESS_WINDOWS
#include <boost/interprocess/windows_shared_memory.hpp>
using namespace boost::interprocess;
int main ()
{
windows_shared_memory dummy;
static_cast<void>(dummy);
return 0;
}
#else
int main()
{
return 0;
}
#endif
#include <boost/interprocess/detail/config_end.hpp>