ptime_wrk.hpp 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. //////////////////////////////////////////////////////////////////////////////
  2. //
  3. // (C) Copyright Ion Gaztanaga 2006-2012. 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. #ifndef BOOST_INTERPROCESS_PTIME_WRK_HPP
  11. #define BOOST_INTERPROCESS_PTIME_WRK_HPP
  12. #ifndef BOOST_CONFIG_HPP
  13. # include <boost/config.hpp>
  14. #endif
  15. #
  16. #if defined(BOOST_HAS_PRAGMA_ONCE)
  17. # pragma once
  18. #endif
  19. //workaround to avoid winsock redefines when using date-time
  20. #ifdef _WIN32
  21. #ifndef WIN32_LEAN_AND_MEAN
  22. #define WIN32_LEAN_AND_MEAN
  23. #define BOOST_INTERPROCESS_WIN32_LEAN_AND_MEAN
  24. #endif //#ifndef WIN32_LEAN_AND_MEAN
  25. #endif //#ifdef _WIN32
  26. #include <boost/date_time/posix_time/ptime.hpp>
  27. #ifdef _WIN32
  28. #ifdef BOOST_INTERPROCESS_WIN32_LEAN_AND_MEAN
  29. #undef WIN32_LEAN_AND_MEAN
  30. #undef BOOST_INTERPROCESS_WIN32_LEAN_AND_MEAN
  31. #endif //#ifdef BOOST_INTERPROCESS_WIN32_LEAN_AND_MEAN
  32. #endif //#ifdef _WIN32
  33. #endif //#ifndef BOOST_INTERPROCESS_PTIME_WRK_HPP