1 //////////////////////////////////////////////////////////////////////////////
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)
7 // See http://www.boost.org/libs/interprocess for documentation.
9 //////////////////////////////////////////////////////////////////////////////
11 #ifndef BOOST_INTERPROCESS_PTIME_WRK_HPP
12 #define BOOST_INTERPROCESS_PTIME_WRK_HPP
14 #ifndef BOOST_CONFIG_HPP
15 # include <boost/config.hpp>
18 #if defined(BOOST_HAS_PRAGMA_ONCE)
22 //workaround to avoid winsock redefines when using date-time
25 #ifndef WIN32_LEAN_AND_MEAN
26 #define WIN32_LEAN_AND_MEAN
27 #define BOOST_INTERPROCESS_WIN32_LEAN_AND_MEAN
28 #endif //#ifndef WIN32_LEAN_AND_MEAN
29 #endif //#ifdef _WIN32
31 #include <boost/date_time/posix_time/ptime.hpp>
34 #ifdef BOOST_INTERPROCESS_WIN32_LEAN_AND_MEAN
35 #undef WIN32_LEAN_AND_MEAN
36 #undef BOOST_INTERPROCESS_WIN32_LEAN_AND_MEAN
37 #endif //#ifdef BOOST_INTERPROCESS_WIN32_LEAN_AND_MEAN
38 #endif //#ifdef _WIN32
40 #endif //#ifndef BOOST_INTERPROCESS_PTIME_WRK_HPP