//////////////////////////////////////////////////////////////////////////////
//
// (C) Copyright Ion Gaztanaga 2005-2009. Distributed under the Boost
// Software License, Version 1.0. (See accompanying file
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
// See http://www.boost.org/libs/interprocess for documentation.
//
//////////////////////////////////////////////////////////////////////////////

#ifndef CPPCMS_BOOST_INTERPROCESS_POSIX_TIMES_WRK_HPP
#define CPPCMS_BOOST_INTERPROCESS_POSIX_TIMES_WRK_HPP

//workaround to avoid winsock redefines when using date-time

#ifdef _WIN32
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN 
#define CPPCMS_BOOST_INTERPROCESS_WIN32_LEAN_AND_MEAN
#endif   //#ifndef WIN32_LEAN_AND_MEAN
#endif   //#ifdef _WIN32

//#include <boost/date_time/posix_time/ptime.hpp>
//#include <boost/date_time/microsec_time_clock.hpp>
#include <cppcms_boost/date_time/posix_time/posix_time_types.hpp>

namespace cppcms_boost {
namespace interprocess {

typedef cppcms_boost::date_time::microsec_clock<cppcms_boost::posix_time::ptime> microsec_clock;

}
}

#ifdef _WIN32
#ifdef CPPCMS_BOOST_INTERPROCESS_WIN32_LEAN_AND_MEAN
#undef WIN32_LEAN_AND_MEAN
#undef CPPCMS_BOOST_INTERPROCESS_WIN32_LEAN_AND_MEAN
#endif   //#ifdef BOOST_INTERPROCESS_WIN32_LEAN_AND_MEAN
#endif   //#ifdef _WIN32

#endif   //#ifndef BOOST_INTERPROCESS_POSIX_TIMES_WRK_HPP

