Allow stdint.h for compilers other than gcc when building on linux with a recent glibc version.

See https://svn.boost.org/trac/boost/ticket/13045.
This commit is contained in:
jzmaddock
2017-06-12 19:38:54 +01:00
parent fa8c3269da
commit 0debb6db2f

View File

@ -24,8 +24,9 @@
#if defined(__GLIBC__) && ((__GLIBC__ > 2) || ((__GLIBC__ == 2) && (__GLIBC_MINOR__ >= 1))) #if defined(__GLIBC__) && ((__GLIBC__ > 2) || ((__GLIBC__ == 2) && (__GLIBC_MINOR__ >= 1)))
// <stdint.h> defines int64_t unconditionally, but <sys/types.h> defines // <stdint.h> defines int64_t unconditionally, but <sys/types.h> defines
// int64_t only if __GNUC__. Thus, assume a fully usable <stdint.h> // int64_t only if __GNUC__. Thus, assume a fully usable <stdint.h>
// only when using GCC. // only when using GCC. Update 2017: this appears not to be the case for
# if defined __GNUC__ // recent glibc releases, see bug report: https://svn.boost.org/trac/boost/ticket/13045
# if defined(__GNUC__) || ((__GLIBC__ > 2) || ((__GLIBC__ == 2) && (__GLIBC_MINOR__ >= 5)))
# define BOOST_HAS_STDINT_H # define BOOST_HAS_STDINT_H
# endif # endif
#endif #endif