fix check for __GLIBC_PREREQ

[SVN r11220]
This commit is contained in:
Jens Maurer
2001-09-23 20:25:21 +00:00
parent 6bf5f7c4f5
commit 419956836b

View File

@@ -9,6 +9,9 @@
#define BOOST_PLATFORM "linux"
// make sure we have __GLIBC_PREREQ if available at all
#include <cstdlib>
//
// stdint.h added to glibc 2.1.1
// We can only test for 2.1 though:
@@ -17,8 +20,15 @@
#define BOOST_HAS_STDINT_H
#endif
#if !defined(__GLIBC__) || !defined(__GLIBC_PREREQ) || !__GLIBC_PREREQ(2,2) || (!defined(__USE_ISOC99) && !defined(__USE_UNIX98))
#define BOOST_NO_SWPRINTF
#if defined(__GLIBC__) && defined(__GLIBC_PREREQ)
// __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
#ifndef __GNUC__
@@ -47,7 +57,3 @@
# endif
#endif