Files

72 lines
1.8 KiB
C++
Raw Permalink Normal View History

2011-03-07 13:07:30 +00:00
// (C) Copyright John Maddock 2001 - 2003.
// Use, modification and distribution are subject to the
// Boost Software License, Version 1.0. (See accompanying file
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
2011-03-07 13:07:30 +00:00
// See http://www.boost.org for most recent version.
2011-03-07 13:07:30 +00:00
// cygwin specific config options:
#define BOOST_PLATFORM "Cygwin"
#define BOOST_HAS_DIRENT_H
2007-10-07 11:10:24 +00:00
#define BOOST_HAS_LOG1P
#define BOOST_HAS_EXPM1
2011-03-07 13:07:30 +00:00
//
// Threading API:
// See if we have POSIX threads, if we do use them, otherwise
// revert to native Win threads.
2001-10-27 10:56:36 +00:00
#define BOOST_HAS_UNISTD_H
2001-09-22 11:50:15 +00:00
#include <unistd.h>
2011-03-07 13:07:30 +00:00
#if defined(_POSIX_THREADS) && (_POSIX_THREADS+0 >= 0) && !defined(BOOST_HAS_WINTHREADS)
# define BOOST_HAS_PTHREADS
# define BOOST_HAS_SCHED_YIELD
# define BOOST_HAS_GETTIMEOFDAY
# define BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE
//# define BOOST_HAS_SIGACTION
2001-09-22 11:50:15 +00:00
#else
2011-03-07 13:07:30 +00:00
# if !defined(BOOST_HAS_WINTHREADS)
# define BOOST_HAS_WINTHREADS
# endif
# define BOOST_HAS_FTIME
2001-09-22 11:50:15 +00:00
#endif
2011-03-07 13:07:30 +00:00
//
// find out if we have a stdint.h, there should be a better way to do this:
//
2004-01-14 13:30:49 +00:00
#include <sys/types.h>
#ifdef _STDINT_H
2011-03-07 13:07:30 +00:00
#define BOOST_HAS_STDINT_H
2004-01-14 13:30:49 +00:00
#endif
2018-01-28 18:37:04 +00:00
#if __GNUC__ > 5 && !defined(BOOST_HAS_STDINT_H)
# define BOOST_HAS_STDINT_H
#endif
2004-01-14 13:30:49 +00:00
2018-11-01 14:27:59 -04:00
#include <cygwin/version.h>
#if (CYGWIN_VERSION_API_MAJOR == 0 && CYGWIN_VERSION_API_MINOR < 231)
2010-12-31 17:08:07 +00:00
/// Cygwin has no fenv.h
#define BOOST_NO_FENV_H
2018-11-01 14:27:59 -04:00
#endif
2010-12-31 17:08:07 +00:00
2018-01-28 18:37:04 +00:00
// Cygwin has it's own <pthread.h> which breaks <shared_mutex> unless the correct compiler flags are used:
#ifndef BOOST_NO_CXX14_HDR_SHARED_MUTEX
#include <pthread.h>
#if !(__XSI_VISIBLE >= 500 || __POSIX_VISIBLE >= 200112)
# define BOOST_NO_CXX14_HDR_SHARED_MUTEX
#endif
#endif
2011-03-07 13:07:30 +00:00
// boilerplate code:
2017-04-16 19:12:59 +01:00
#include <boost/config/detail/posix_features.hpp>
2010-10-01 09:19:44 +00:00
2011-03-07 13:07:30 +00:00
//
// Cygwin lies about XSI conformance, there is no nl_types.h:
//
2010-10-01 09:19:44 +00:00
#ifdef BOOST_HAS_NL_TYPES_H
2011-03-07 13:07:30 +00:00
# undef BOOST_HAS_NL_TYPES_H
2010-10-01 09:19:44 +00:00
#endif
2003-10-04 11:29:20 +00:00
2007-10-07 11:10:24 +00:00