boost_use_windows_h.cpp 908 B

1234567891011121314151617181920212223242526272829303132333435363738
  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. #include <boost/interprocess/detail/config_begin.hpp>
  13. #include <boost/interprocess/detail/workaround.hpp>
  14. #ifdef BOOST_INTERPROCESS_WINDOWS
  15. #include <boost/interprocess/windows_shared_memory.hpp>
  16. using namespace boost::interprocess;
  17. int main ()
  18. {
  19. windows_shared_memory dummy;
  20. static_cast<void>(dummy);
  21. return 0;
  22. }
  23. #else
  24. int main()
  25. {
  26. return 0;
  27. }
  28. #endif
  29. #include <boost/interprocess/detail/config_end.hpp>