Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r68128 - trunk/boost/detail/win
From: vicente.botet_at_[hidden]
Date: 2011-01-13 17:07:20


Author: viboes
Date: 2011-01-13 17:07:19 EST (Thu, 13 Jan 2011)
New Revision: 68128
URL: http://svn.boost.org/trac/boost/changeset/68128

Log:
Boost.Chrono: try to fix LONGLONG_ definition

Text files modified:
   trunk/boost/detail/win/basic_types.hpp | 24 +++++++++++++-----------
   1 files changed, 13 insertions(+), 11 deletions(-)

Modified: trunk/boost/detail/win/basic_types.hpp
==============================================================================
--- trunk/boost/detail/win/basic_types.hpp (original)
+++ trunk/boost/detail/win/basic_types.hpp 2011-01-13 17:07:19 EST (Thu, 13 Jan 2011)
@@ -10,10 +10,10 @@
 #define BOOST_DETAIL_WIN_BASIC_TYPES_HPP
 #include <boost/config.hpp>
 #include <cstdarg>
-
+#include <boost/cstdint.hpp>
 #if defined( BOOST_USE_WINDOWS_H )
 # include <windows.h>
-#elif defined( WIN32 ) || defined( _WIN32 ) || defined( __WIN32__ )
+#elif defined( WIN32 ) || defined( _WIN32 ) || defined( __WIN32__ ) || defined(__CYGWIN__)
 # include <WinError.h>
 // @FIXME Which condition must be tested
 # ifdef UNDER_CE
@@ -64,16 +64,18 @@
     typedef long LONG_;
 
 // @FIXME Which condition must be tested
-#if !defined(_M_IX86)
-#if defined(__CYGWIN__)
- typedef double LONGLONG_;
-#else
- typedef __int64 LONGLONG_;
-#endif
-#else
- typedef double LONGLONG_;
-#endif
+//~ #if !defined(_M_IX86)
+//~ #if defined(BOOST_NO_INT64_T)
+ //~ typedef double LONGLONG_;
+//~ #else
+ //~ typedef __int64 LONGLONG_;
+//~ #endif
+//~ #else
+ //~ typedef double LONGLONG_;
+//~ #endif
+ typedef boost::int64_t LONGLONG_;
 
+// @FIXME Which condition must be tested
 # ifdef _WIN64
 #if defined(__CYGWIN__)
     typedef unsigned long ULONG_PTR_;


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk