]> AND Private Git Repository - canny.git/blob - stc/exp/ml_stc_linux_make_v1.0/include/boost/config/platform/linux.hpp
Logo AND Algorithmique Numérique Distribuée

Private GIT Repository
b87db7946f556f7a5f7df4394c40fc40dc8e0994
[canny.git] / stc / exp / ml_stc_linux_make_v1.0 / include / boost / config / platform / linux.hpp
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
6 \r
7 //  See http://www.boost.org for most recent version.\r
8 \r
9 //  linux specific config options:\r
10 \r
11 #define BOOST_PLATFORM "linux"\r
12 \r
13 // make sure we have __GLIBC_PREREQ if available at all\r
14 #include <cstdlib>\r
15 \r
16 //\r
17 // <stdint.h> added to glibc 2.1.1\r
18 // We can only test for 2.1 though:\r
19 //\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
26 #  endif\r
27 #endif\r
28 \r
29 #if defined(__LIBCOMO__)\r
30    //\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
34    //\r
35 #  if __LIBCOMO_VERSION__ <= 20\r
36 #    define BOOST_NO_STDC_NAMESPACE\r
37 #  endif\r
38 \r
39 #  if __LIBCOMO_VERSION__ <= 21\r
40 #    define BOOST_NO_SWPRINTF\r
41 #  endif\r
42 \r
43 #endif\r
44 \r
45 //\r
46 // If glibc is past version 2 then we definitely have\r
47 // gettimeofday, earlier versions may or may not have it:\r
48 //\r
49 #if defined(__GLIBC__) && (__GLIBC__ >= 2)\r
50 #  define BOOST_HAS_GETTIMEOFDAY\r
51 #endif\r
52 \r
53 #ifdef __USE_POSIX199309\r
54 #  define BOOST_HAS_NANOSLEEP\r
55 #endif\r
56 \r
57 #if defined(__GLIBC__) && defined(__GLIBC_PREREQ)\r
58 // __GLIBC_PREREQ is available since 2.1.2\r
59 \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
63 #  endif\r
64 #else\r
65 #  define BOOST_NO_SWPRINTF\r
66 #endif\r
67 \r
68 // boilerplate code:\r
69 #define BOOST_HAS_UNISTD_H\r
70 #include <boost/config/posix_features.hpp>\r
71 \r
72 #ifndef __GNUC__\r
73 //\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
77 //\r
78 #  ifndef __extension__\r
79 #     define __extension__\r
80 #  endif\r
81 #  ifndef __const__\r
82 #     define __const__ const\r
83 #  endif\r
84 #  ifndef __volatile__\r
85 #     define __volatile__ volatile\r
86 #  endif\r
87 #  ifndef __signed__\r
88 #     define __signed__ signed\r
89 #  endif\r
90 #  ifndef __typeof__\r
91 #     define __typeof__ typeof\r
92 #  endif\r
93 #  ifndef __inline__\r
94 #     define __inline__ inline\r
95 #  endif\r
96 #endif\r
97 \r
98 \r