Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r59264 - trunk/boost
From: john_at_[hidden]
Date: 2010-01-25 05:55:51


Author: johnmaddock
Date: 2010-01-25 05:55:50 EST (Mon, 25 Jan 2010)
New Revision: 59264
URL: http://svn.boost.org/trac/boost/changeset/59264

Log:
Commit alternative warning suppression code.
Text files modified:
   trunk/boost/cstdint.hpp | 12 +-----------
   1 files changed, 1 insertions(+), 11 deletions(-)

Modified: trunk/boost/cstdint.hpp
==============================================================================
--- trunk/boost/cstdint.hpp (original)
+++ trunk/boost/cstdint.hpp 2010-01-25 05:55:50 EST (Mon, 25 Jan 2010)
@@ -390,16 +390,6 @@
 # define UINTMAX_C(value) value##ui64
 
 # else
-// For the following code we get several warnings along the lines of:
-//
-// boost/cstdint.hpp:428:35: error: use of C99 long long integer constant
-//
-// So we declare this a system header to suppress these warnings.
-
-#if defined(__GNUC__) && (__GNUC__ >= 4)
-#pragma GCC system_header
-#endif
-
 // do it the old fashioned way:
 
 // 8-bit types ------------------------------------------------------------//
@@ -431,7 +421,7 @@
 # if defined(BOOST_HAS_LONG_LONG) && \
     (defined(ULLONG_MAX) || defined(ULONG_LONG_MAX) || defined(ULONGLONG_MAX) || defined(_LLONG_MAX))
 
-# if defined(__hpux)
+# if defined(__hpux) || defined(__APPLE__)
         // HP-UX's value of ULONG_LONG_MAX is unusable in preprocessor expressions
 # define INT64_C(value) value##LL
 # define UINT64_C(value) value##uLL


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