PageRenderTime 16ms CodeModel.GetById 10ms app.highlight 2ms RepoModel.GetById 2ms app.codeStats 0ms

/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
11#ifndef BOOST_INTERPROCESS_POSIX_TIMES_WRK_HPP
12#define BOOST_INTERPROCESS_POSIX_TIMES_WRK_HPP
13
14//workaround to avoid winsock redefines when using date-time
15
16#ifdef _WIN32
17#ifndef WIN32_LEAN_AND_MEAN
18#define WIN32_LEAN_AND_MEAN 
19#define BOOST_INTERPROCESS_WIN32_LEAN_AND_MEAN
20#endif   //#ifndef WIN32_LEAN_AND_MEAN
21#endif   //#ifdef _WIN32
22
23#include <boost/date_time/posix_time/posix_time_types.hpp>
24#include <boost/date_time/posix_time/conversion.hpp>
25
26namespace boost {
27namespace interprocess {
28
29typedef boost::date_time::microsec_clock<boost::posix_time::ptime> microsec_clock;
30
31}
32}
33
34#ifdef _WIN32
35#ifdef BOOST_INTERPROCESS_WIN32_LEAN_AND_MEAN
36#undef WIN32_LEAN_AND_MEAN
37#undef BOOST_INTERPROCESS_WIN32_LEAN_AND_MEAN
38#endif   //#ifdef BOOST_INTERPROCESS_WIN32_LEAN_AND_MEAN
39#endif   //#ifdef _WIN32
40
41#endif   //#ifndef BOOST_INTERPROCESS_POSIX_TIMES_WRK_HPP
42