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 //  Use, modification and distribution are subject to the 
0003 //  Boost Software License, Version 1.0. (See accompanying file 
0004 //  LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
0005 
0006 //  See http://www.boost.org for most recent version.
0007 
0008 //  cygwin specific config options:
0009 
0010 #define BOOST_PLATFORM "Cygwin"
0011 #define BOOST_HAS_DIRENT_H
0012 #define BOOST_HAS_LOG1P
0013 #define BOOST_HAS_EXPM1
0014 
0015 //
0016 // Threading API:
0017 // See if we have POSIX threads, if we do use them, otherwise
0018 // revert to native Win threads.
0019 #define BOOST_HAS_UNISTD_H
0020 #include <unistd.h>
0021 #if defined(_POSIX_THREADS) && (_POSIX_THREADS+0 >= 0) && !defined(BOOST_HAS_WINTHREADS)
0022 #  define BOOST_HAS_PTHREADS
0023 #  define BOOST_HAS_SCHED_YIELD
0024 #  define BOOST_HAS_GETTIMEOFDAY
0025 #  define BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE
0026 //#  define BOOST_HAS_SIGACTION
0027 #else
0028 #  if !defined(BOOST_HAS_WINTHREADS)
0029 #     define BOOST_HAS_WINTHREADS
0030 #  endif
0031 #  define BOOST_HAS_FTIME
0032 #endif
0033 
0034 //
0035 // find out if we have a stdint.h, there should be a better way to do this:
0036 //
0037 #include <sys/types.h>
0038 #ifdef _STDINT_H
0039 #define BOOST_HAS_STDINT_H
0040 #endif
0041 #if __GNUC__ > 5 && !defined(BOOST_HAS_STDINT_H)
0042 #   define BOOST_HAS_STDINT_H
0043 #endif
0044 
0045 #include <cygwin/version.h>
0046 #if (CYGWIN_VERSION_API_MAJOR == 0 && CYGWIN_VERSION_API_MINOR < 231)
0047 /// Cygwin has no fenv.h
0048 #define BOOST_NO_FENV_H
0049 #endif
0050 
0051 // Cygwin has it's own <pthread.h> which breaks <shared_mutex> unless the correct compiler flags are used:
0052 #ifndef BOOST_NO_CXX14_HDR_SHARED_MUTEX
0053 #include <pthread.h>
0054 #if !(__XSI_VISIBLE >= 500 || __POSIX_VISIBLE >= 200112)
0055 #  define BOOST_NO_CXX14_HDR_SHARED_MUTEX
0056 #endif
0057 #endif
0058 
0059 // boilerplate code:
0060 #include <boost/config/detail/posix_features.hpp>
0061 
0062 //
0063 // Cygwin lies about XSI conformance, there is no nl_types.h:
0064 //
0065 #ifdef BOOST_HAS_NL_TYPES_H
0066 #  undef BOOST_HAS_NL_TYPES_H
0067 #endif
0068 
0069 
0070 
0071