ptime_wrk.hpp 1.1 KB

123456789101112131415161718192021222324252627282930313233
  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. //workaround to avoid winsock redefines when using date-time
  13. #ifdef _WIN32
  14. #ifndef WIN32_LEAN_AND_MEAN
  15. #define WIN32_LEAN_AND_MEAN
  16. #define BOOST_INTERPROCESS_WIN32_LEAN_AND_MEAN
  17. #endif //#ifndef WIN32_LEAN_AND_MEAN
  18. #endif //#ifdef _WIN32
  19. #include <boost/date_time/posix_time/ptime.hpp>
  20. #ifdef _WIN32
  21. #ifdef BOOST_INTERPROCESS_WIN32_LEAN_AND_MEAN
  22. #undef WIN32_LEAN_AND_MEAN
  23. #undef BOOST_INTERPROCESS_WIN32_LEAN_AND_MEAN
  24. #endif //#ifdef BOOST_INTERPROCESS_WIN32_LEAN_AND_MEAN
  25. #endif //#ifdef _WIN32
  26. #endif //#ifndef BOOST_INTERPROCESS_PTIME_WRK_HPP