1 // (C) Copyright John Maddock 2001 - 2003.
\r
2 // (C) Copyright Jens Maurer 2001 - 2003.
\r
3 // Use, modification and distribution are subject to the
\r
4 // Boost Software License, Version 1.0. (See accompanying file
\r
5 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
\r
7 // See http://www.boost.org for most recent version.
\r
9 // linux specific config options:
\r
11 #define BOOST_PLATFORM "linux"
\r
13 // make sure we have __GLIBC_PREREQ if available at all
\r
17 // <stdint.h> added to glibc 2.1.1
\r
18 // We can only test for 2.1 though:
\r
20 #if defined(__GLIBC__) && ((__GLIBC__ > 2) || ((__GLIBC__ == 2) && (__GLIBC_MINOR__ >= 1)))
\r
21 // <stdint.h> defines int64_t unconditionally, but <sys/types.h> defines
\r
22 // int64_t only if __GNUC__. Thus, assume a fully usable <stdint.h>
\r
23 // only when using GCC.
\r
24 # if defined __GNUC__
\r
25 # define BOOST_HAS_STDINT_H
\r
29 #if defined(__LIBCOMO__)
\r
31 // como on linux doesn't have std:: c functions:
\r
32 // NOTE: versions of libcomo prior to beta28 have octal version numbering,
\r
33 // e.g. version 25 is 21 (dec)
\r
35 # if __LIBCOMO_VERSION__ <= 20
\r
36 # define BOOST_NO_STDC_NAMESPACE
\r
39 # if __LIBCOMO_VERSION__ <= 21
\r
40 # define BOOST_NO_SWPRINTF
\r
46 // If glibc is past version 2 then we definitely have
\r
47 // gettimeofday, earlier versions may or may not have it:
\r
49 #if defined(__GLIBC__) && (__GLIBC__ >= 2)
\r
50 # define BOOST_HAS_GETTIMEOFDAY
\r
53 #ifdef __USE_POSIX199309
\r
54 # define BOOST_HAS_NANOSLEEP
\r
57 #if defined(__GLIBC__) && defined(__GLIBC_PREREQ)
\r
58 // __GLIBC_PREREQ is available since 2.1.2
\r
60 // swprintf is available since glibc 2.2.0
\r
61 # if !__GLIBC_PREREQ(2,2) || (!defined(__USE_ISOC99) && !defined(__USE_UNIX98))
\r
62 # define BOOST_NO_SWPRINTF
\r
65 # define BOOST_NO_SWPRINTF
\r
68 // boilerplate code:
\r
69 #define BOOST_HAS_UNISTD_H
\r
70 #include <boost/config/posix_features.hpp>
\r
74 // if the compiler is not gcc we still need to be able to parse
\r
75 // the GNU system headers, some of which (mainly <stdint.h>)
\r
76 // use GNU specific extensions:
\r
78 # ifndef __extension__
\r
79 # define __extension__
\r
82 # define __const__ const
\r
84 # ifndef __volatile__
\r
85 # define __volatile__ volatile
\r
88 # define __signed__ signed
\r
91 # define __typeof__ typeof
\r
94 # define __inline__ inline
\r