Boost.Chrono: try to fix LONGLONG_ definition

[SVN r68128]
This commit is contained in:
Vicente J. Botet Escriba
2011-01-13 22:07:19 +00:00
parent e7f3ca8c2f
commit 91db205d17

View File

@ -10,10 +10,10 @@
#define BOOST_DETAIL_WIN_BASIC_TYPES_HPP #define BOOST_DETAIL_WIN_BASIC_TYPES_HPP
#include <boost/config.hpp> #include <boost/config.hpp>
#include <cstdarg> #include <cstdarg>
#include <boost/cstdint.hpp>
#if defined( BOOST_USE_WINDOWS_H ) #if defined( BOOST_USE_WINDOWS_H )
# include <windows.h> # include <windows.h>
#elif defined( WIN32 ) || defined( _WIN32 ) || defined( __WIN32__ ) #elif defined( WIN32 ) || defined( _WIN32 ) || defined( __WIN32__ ) || defined(__CYGWIN__)
# include <WinError.h> # include <WinError.h>
// @FIXME Which condition must be tested // @FIXME Which condition must be tested
# ifdef UNDER_CE # ifdef UNDER_CE
@ -64,16 +64,18 @@ extern "C" {
typedef long LONG_; typedef long LONG_;
// @FIXME Which condition must be tested // @FIXME Which condition must be tested
#if !defined(_M_IX86) //~ #if !defined(_M_IX86)
#if defined(__CYGWIN__) //~ #if defined(BOOST_NO_INT64_T)
typedef double LONGLONG_; //~ typedef double LONGLONG_;
#else //~ #else
typedef __int64 LONGLONG_; //~ typedef __int64 LONGLONG_;
#endif //~ #endif
#else //~ #else
typedef double LONGLONG_; //~ typedef double LONGLONG_;
#endif //~ #endif
typedef boost::int64_t LONGLONG_;
// @FIXME Which condition must be tested
# ifdef _WIN64 # ifdef _WIN64
#if defined(__CYGWIN__) #if defined(__CYGWIN__)
typedef unsigned long ULONG_PTR_; typedef unsigned long ULONG_PTR_;