Chris@16: // (C) Copyright John Maddock 2001 - 2003. Chris@16: // (C) Copyright Jens Maurer 2001 - 2003. Chris@16: // Use, modification and distribution are subject to the Chris@16: // Boost Software License, Version 1.0. (See accompanying file Chris@16: // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) Chris@16: Chris@16: // See http://www.boost.org for most recent version. Chris@16: Chris@16: // linux specific config options: Chris@16: Chris@16: #define BOOST_PLATFORM "linux" Chris@16: Chris@16: // make sure we have __GLIBC_PREREQ if available at all Chris@16: #ifdef __cplusplus Chris@16: #include Chris@16: #else Chris@16: #include Chris@16: #endif Chris@16: Chris@16: // Chris@16: // added to glibc 2.1.1 Chris@16: // We can only test for 2.1 though: Chris@16: // Chris@16: #if defined(__GLIBC__) && ((__GLIBC__ > 2) || ((__GLIBC__ == 2) && (__GLIBC_MINOR__ >= 1))) Chris@16: // defines int64_t unconditionally, but defines Chris@16: // int64_t only if __GNUC__. Thus, assume a fully usable Chris@16: // only when using GCC. Chris@16: # if defined __GNUC__ Chris@16: # define BOOST_HAS_STDINT_H Chris@16: # endif Chris@16: #endif Chris@16: Chris@16: #if defined(__LIBCOMO__) Chris@16: // Chris@16: // como on linux doesn't have std:: c functions: Chris@16: // NOTE: versions of libcomo prior to beta28 have octal version numbering, Chris@16: // e.g. version 25 is 21 (dec) Chris@16: // Chris@16: # if __LIBCOMO_VERSION__ <= 20 Chris@16: # define BOOST_NO_STDC_NAMESPACE Chris@16: # endif Chris@16: Chris@16: # if __LIBCOMO_VERSION__ <= 21 Chris@16: # define BOOST_NO_SWPRINTF Chris@16: # endif Chris@16: Chris@16: #endif Chris@16: Chris@16: // Chris@16: // If glibc is past version 2 then we definitely have Chris@16: // gettimeofday, earlier versions may or may not have it: Chris@16: // Chris@16: #if defined(__GLIBC__) && (__GLIBC__ >= 2) Chris@16: # define BOOST_HAS_GETTIMEOFDAY Chris@16: #endif Chris@16: Chris@16: #ifdef __USE_POSIX199309 Chris@16: # define BOOST_HAS_NANOSLEEP Chris@16: #endif Chris@16: Chris@16: #if defined(__GLIBC__) && defined(__GLIBC_PREREQ) Chris@16: // __GLIBC_PREREQ is available since 2.1.2 Chris@16: Chris@16: // swprintf is available since glibc 2.2.0 Chris@16: # if !__GLIBC_PREREQ(2,2) || (!defined(__USE_ISOC99) && !defined(__USE_UNIX98)) Chris@16: # define BOOST_NO_SWPRINTF Chris@16: # endif Chris@16: #else Chris@16: # define BOOST_NO_SWPRINTF Chris@16: #endif Chris@16: Chris@16: // boilerplate code: Chris@16: #define BOOST_HAS_UNISTD_H Chris@16: #include Chris@101: #ifdef __USE_GNU Chris@16: #define BOOST_HAS_PTHREAD_YIELD Chris@101: #endif Chris@16: Chris@16: #ifndef __GNUC__ Chris@16: // Chris@16: // if the compiler is not gcc we still need to be able to parse Chris@16: // the GNU system headers, some of which (mainly ) Chris@16: // use GNU specific extensions: Chris@16: // Chris@16: # ifndef __extension__ Chris@16: # define __extension__ Chris@16: # endif Chris@16: # ifndef __const__ Chris@16: # define __const__ const Chris@16: # endif Chris@16: # ifndef __volatile__ Chris@16: # define __volatile__ volatile Chris@16: # endif Chris@16: # ifndef __signed__ Chris@16: # define __signed__ signed Chris@16: # endif Chris@16: # ifndef __typeof__ Chris@16: # define __typeof__ typeof Chris@16: # endif Chris@16: # ifndef __inline__ Chris@16: # define __inline__ inline Chris@16: # endif Chris@16: #endif Chris@16: Chris@16: