Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:30:07

0001 //  (C) Copyright John Maddock 2001 - 2003. 
0002 //  (C) Copyright Jens Maurer 2001 - 2003. 
0003 //  Use, modification and distribution are subject to the 
0004 //  Boost Software License, Version 1.0. (See accompanying file 
0005 //  LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
0006 
0007 //  See http://www.boost.org for most recent version.
0008 
0009 //  linux specific config options:
0010 
0011 #define BOOST_PLATFORM "linux"
0012 
0013 // make sure we have __GLIBC_PREREQ if available at all
0014 #ifdef __cplusplus
0015 #include <cstdlib>
0016 #else
0017 #include <stdlib.h>
0018 #endif
0019 
0020 //
0021 // <stdint.h> added to glibc 2.1.1
0022 // We can only test for 2.1 though:
0023 //
0024 #if defined(__GLIBC__) && ((__GLIBC__ > 2) || ((__GLIBC__ == 2) && (__GLIBC_MINOR__ >= 1)))
0025    // <stdint.h> defines int64_t unconditionally, but <sys/types.h> defines
0026    // int64_t only if __GNUC__.  Thus, assume a fully usable <stdint.h>
0027    // only when using GCC.  Update 2017: this appears not to be the case for
0028    // recent glibc releases, see bug report: https://svn.boost.org/trac/boost/ticket/13045
0029 #  if defined(__GNUC__) || ((__GLIBC__ > 2) || ((__GLIBC__ == 2) && (__GLIBC_MINOR__ >= 5)))
0030 #    define BOOST_HAS_STDINT_H
0031 #  endif
0032 #endif
0033 
0034 #if defined(__LIBCOMO__)
0035    //
0036    // como on linux doesn't have std:: c functions:
0037    // NOTE: versions of libcomo prior to beta28 have octal version numbering,
0038    // e.g. version 25 is 21 (dec)
0039    //
0040 #  if __LIBCOMO_VERSION__ <= 20
0041 #    define BOOST_NO_STDC_NAMESPACE
0042 #  endif
0043 
0044 #  if __LIBCOMO_VERSION__ <= 21
0045 #    define BOOST_NO_SWPRINTF
0046 #  endif
0047 
0048 #endif
0049 
0050 //
0051 // If glibc is past version 2 then we definitely have
0052 // gettimeofday, earlier versions may or may not have it:
0053 //
0054 #if defined(__GLIBC__) && (__GLIBC__ >= 2)
0055 #  define BOOST_HAS_GETTIMEOFDAY
0056 #endif
0057 
0058 #ifdef __USE_POSIX199309
0059 #  define BOOST_HAS_NANOSLEEP
0060 #endif
0061 
0062 #if defined(__GLIBC__) && defined(__GLIBC_PREREQ)
0063 // __GLIBC_PREREQ is available since 2.1.2
0064 
0065    // swprintf is available since glibc 2.2.0
0066 #  if !__GLIBC_PREREQ(2,2) || (!defined(__USE_ISOC99) && !defined(__USE_UNIX98))
0067 #    define BOOST_NO_SWPRINTF
0068 #  endif
0069 #else
0070 #  define BOOST_NO_SWPRINTF
0071 #endif
0072 
0073 // boilerplate code:
0074 #define BOOST_HAS_UNISTD_H
0075 #include <boost/config/detail/posix_features.hpp>
0076 #if defined(__USE_GNU) && !defined(__ANDROID__) && !defined(ANDROID)
0077 #define BOOST_HAS_PTHREAD_YIELD
0078 #endif
0079 
0080 #ifndef __GNUC__
0081 //
0082 // if the compiler is not gcc we still need to be able to parse
0083 // the GNU system headers, some of which (mainly <stdint.h>)
0084 // use GNU specific extensions:
0085 //
0086 #  ifndef __extension__
0087 #     define __extension__
0088 #  endif
0089 #  ifndef __const__
0090 #     define __const__ const
0091 #  endif
0092 #  ifndef __volatile__
0093 #     define __volatile__ volatile
0094 #  endif
0095 #  ifndef __signed__
0096 #     define __signed__ signed
0097 #  endif
0098 #  ifndef __typeof__
0099 #     define __typeof__ typeof
0100 #  endif
0101 #  ifndef __inline__
0102 #     define __inline__ inline
0103 #  endif
0104 #endif
0105 
0106