forked from boostorg/config
cstdint.hpp: Move the #pragma system_header to catch more cases.
See https://github.com/boostorg/config/issues/190.
This commit is contained in:
@@ -34,6 +34,17 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <boost/config.hpp>
|
#include <boost/config.hpp>
|
||||||
|
//
|
||||||
|
// 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.
|
||||||
|
// See also https://github.com/boostorg/config/issues/190
|
||||||
|
//
|
||||||
|
#if defined(__GNUC__) && (__GNUC__ >= 4)
|
||||||
|
#pragma GCC system_header
|
||||||
|
#endif
|
||||||
|
|
||||||
//
|
//
|
||||||
// Note that GLIBC is a bit inconsistent about whether int64_t is defined or not
|
// Note that GLIBC is a bit inconsistent about whether int64_t is defined or not
|
||||||
@@ -408,16 +419,6 @@ INT#_C macros if they're not already defined (John Maddock).
|
|||||||
#if !defined(BOOST__STDC_CONSTANT_MACROS_DEFINED) && \
|
#if !defined(BOOST__STDC_CONSTANT_MACROS_DEFINED) && \
|
||||||
(!defined(INT8_C) || !defined(INT16_C) || !defined(INT32_C) || !defined(INT64_C))
|
(!defined(INT8_C) || !defined(INT16_C) || !defined(INT32_C) || !defined(INT64_C))
|
||||||
//
|
//
|
||||||
// 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
|
|
||||||
//
|
|
||||||
// Undef the macros as a precaution, since we may get here if <stdint.h> has failed
|
// Undef the macros as a precaution, since we may get here if <stdint.h> has failed
|
||||||
// to define them all, see https://svn.boost.org/trac/boost/ticket/12786
|
// to define them all, see https://svn.boost.org/trac/boost/ticket/12786
|
||||||
//
|
//
|
||||||
|
Reference in New Issue
Block a user