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 Darin Adler 2001. 
0003 //  (C) Copyright Douglas Gregor 2002. 
0004 //  Use, modification and distribution are subject to the 
0005 //  Boost Software License, Version 1.0. (See accompanying file 
0006 //  LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
0007 
0008 //  See http://www.boost.org for most recent version.
0009 
0010 //  generic BSD config options:
0011 
0012 #if !defined(__FreeBSD__) && !defined(__NetBSD__) && !defined(__OpenBSD__) && !defined(__DragonFly__)
0013 #error "This platform is not BSD"
0014 #endif
0015 
0016 #ifdef __FreeBSD__
0017 #define BOOST_PLATFORM "FreeBSD " BOOST_STRINGIZE(__FreeBSD__)
0018 #elif defined(__NetBSD__)
0019 #define BOOST_PLATFORM "NetBSD " BOOST_STRINGIZE(__NetBSD__)
0020 #elif defined(__OpenBSD__)
0021 #define BOOST_PLATFORM "OpenBSD " BOOST_STRINGIZE(__OpenBSD__)
0022 #elif defined(__DragonFly__)
0023 #define BOOST_PLATFORM "DragonFly " BOOST_STRINGIZE(__DragonFly__)
0024 #endif
0025 
0026 //
0027 // is this the correct version check?
0028 // FreeBSD has <nl_types.h> but does not
0029 // advertise the fact in <unistd.h>:
0030 //
0031 #if (defined(__FreeBSD__) && (__FreeBSD__ >= 3)) \
0032    || defined(__OpenBSD__) || defined(__DragonFly__)
0033 #  define BOOST_HAS_NL_TYPES_H
0034 #endif
0035 
0036 //
0037 // FreeBSD 3.x has pthreads support, but defines _POSIX_THREADS in <pthread.h>
0038 // and not in <unistd.h>
0039 //
0040 #if (defined(__FreeBSD__) && (__FreeBSD__ <= 3))\
0041    || defined(__OpenBSD__) || defined(__DragonFly__) 
0042 #  define BOOST_HAS_PTHREADS
0043 #endif
0044 
0045 //
0046 // No wide character support in the BSD header files:
0047 //
0048 #if defined(__NetBSD__)
0049 #define __NetBSD_GCC__ (__GNUC__         * 1000000 \
0050                        + __GNUC_MINOR__ *    1000 \
0051                        + __GNUC_PATCHLEVEL__)
0052 // XXX - the following is required until c++config.h
0053 //       defines _GLIBCXX_HAVE_SWPRINTF and friends
0054 //       or the preprocessor conditionals are removed
0055 //       from the cwchar header.
0056 #define _GLIBCXX_HAVE_SWPRINTF 1
0057 #endif
0058 
0059 #if !((defined(__FreeBSD__) && (__FreeBSD__ >= 5)) \
0060       || (defined(__NetBSD_GCC__) && (__NetBSD_GCC__ >= 2095003)) \
0061       || defined(__OpenBSD__) || defined(__DragonFly__))
0062 #  define BOOST_NO_CWCHAR
0063 #endif
0064 //
0065 // The BSD <ctype.h> has macros only, no functions:
0066 //
0067 #if !defined(__OpenBSD__) || defined(__DragonFly__)
0068 #  define BOOST_NO_CTYPE_FUNCTIONS
0069 #endif
0070 
0071 //
0072 // thread API's not auto detected:
0073 //
0074 #define BOOST_HAS_SCHED_YIELD
0075 #define BOOST_HAS_NANOSLEEP
0076 #define BOOST_HAS_GETTIMEOFDAY
0077 #define BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE
0078 #define BOOST_HAS_SIGACTION
0079 #define BOOST_HAS_CLOCK_GETTIME
0080 
0081 // boilerplate code:
0082 #define BOOST_HAS_UNISTD_H
0083 #include <boost/config/detail/posix_features.hpp>