/Src/Dependencies/Boost/boost/interprocess/detail/posix_time_types_wrk.hpp

http://hadesmem.googlecode.com/ · C++ Header · 42 lines · 22 code · 10 blank · 10 comment · 0 complexity · 73752a9b0794d01d077ebdf1e573bbfe MD5 · raw file

  1. //////////////////////////////////////////////////////////////////////////////
  2. //
  3. // (C) Copyright Ion Gaztanaga 2005-2009. 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_POSIX_TIMES_WRK_HPP
  11. #define BOOST_INTERPROCESS_POSIX_TIMES_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/posix_time_types.hpp>
  20. #include <boost/date_time/posix_time/conversion.hpp>
  21. namespace boost {
  22. namespace interprocess {
  23. typedef boost::date_time::microsec_clock<boost::posix_time::ptime> microsec_clock;
  24. }
  25. }
  26. #ifdef _WIN32
  27. #ifdef BOOST_INTERPROCESS_WIN32_LEAN_AND_MEAN
  28. #undef WIN32_LEAN_AND_MEAN
  29. #undef BOOST_INTERPROCESS_WIN32_LEAN_AND_MEAN
  30. #endif //#ifdef BOOST_INTERPROCESS_WIN32_LEAN_AND_MEAN
  31. #endif //#ifdef _WIN32
  32. #endif //#ifndef BOOST_INTERPROCESS_POSIX_TIMES_WRK_HPP