]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/interprocess/test/include_but_no_use_windows_h.cpp
import quincy beta 17.1.0
[ceph.git] / ceph / src / boost / libs / interprocess / test / include_but_no_use_windows_h.cpp
diff --git a/ceph/src/boost/libs/interprocess/test/include_but_no_use_windows_h.cpp b/ceph/src/boost/libs/interprocess/test/include_but_no_use_windows_h.cpp
new file mode 100644 (file)
index 0000000..003701d
--- /dev/null
@@ -0,0 +1,33 @@
+//////////////////////////////////////////////////////////////////////////////
+//
+// (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.
+//
+//////////////////////////////////////////////////////////////////////////////
+#include <boost/interprocess/detail/workaround.hpp>
+
+#ifdef BOOST_INTERPROCESS_WINDOWS
+#include <windows.h>
+
+#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