forked from boostorg/config
fix check for __GLIBC_PREREQ
[SVN r11220]
This commit is contained in:
@@ -9,6 +9,9 @@
|
|||||||
|
|
||||||
#define BOOST_PLATFORM "linux"
|
#define BOOST_PLATFORM "linux"
|
||||||
|
|
||||||
|
// make sure we have __GLIBC_PREREQ if available at all
|
||||||
|
#include <cstdlib>
|
||||||
|
|
||||||
//
|
//
|
||||||
// stdint.h added to glibc 2.1.1
|
// stdint.h added to glibc 2.1.1
|
||||||
// We can only test for 2.1 though:
|
// We can only test for 2.1 though:
|
||||||
@@ -17,8 +20,15 @@
|
|||||||
#define BOOST_HAS_STDINT_H
|
#define BOOST_HAS_STDINT_H
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(__GLIBC__) || !defined(__GLIBC_PREREQ) || !__GLIBC_PREREQ(2,2) || (!defined(__USE_ISOC99) && !defined(__USE_UNIX98))
|
#if defined(__GLIBC__) && defined(__GLIBC_PREREQ)
|
||||||
#define BOOST_NO_SWPRINTF
|
// __GLIBC_PREREQ is available since 2.1.2
|
||||||
|
|
||||||
|
// swprintf added to glibc 2.2.0
|
||||||
|
# if !__GLIBC_PREREQ(2,2) || (!defined(__USE_ISOC99) && !defined(__USE_UNIX98))
|
||||||
|
# define BOOST_NO_SWPRINTF
|
||||||
|
# endif
|
||||||
|
#else
|
||||||
|
# define BOOST_NO_SWPRINTF
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef __GNUC__
|
#ifndef __GNUC__
|
||||||
@@ -47,7 +57,3 @@
|
|||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user