2003-10-04 11:29:20 +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)
|
2001-09-18 11:13:39 +00:00
|
|
|
|
|
|
|
|
// See http://www.boost.org for most recent version.
|
|
|
|
|
|
|
|
|
|
// cygwin specific config options:
|
|
|
|
|
|
|
|
|
|
#define BOOST_PLATFORM "Cygwin"
|
|
|
|
|
#define BOOST_NO_CWCTYPE
|
|
|
|
|
#define BOOST_NO_CWCHAR
|
|
|
|
|
#define BOOST_NO_SWPRINTF
|
2003-01-04 12:53:08 +00:00
|
|
|
#define BOOST_HAS_DIRENT_H
|
2005-10-14 14:16:26 +00:00
|
|
|
#define BOOST_HAS_LOG1P
|
|
|
|
|
#define BOOST_HAS_EXPM1
|
2001-09-18 11:13:39 +00:00
|
|
|
|
2001-09-22 11:50:15 +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>
|
2001-09-25 11:46:44 +00:00
|
|
|
#if defined(_POSIX_THREADS) && (_POSIX_THREADS+0 >= 0) && !defined(BOOST_HAS_WINTHREADS)
|
2001-09-22 11:50:15 +00:00
|
|
|
# define BOOST_HAS_PTHREADS
|
|
|
|
|
# define BOOST_HAS_SCHED_YIELD
|
2001-09-25 11:46:44 +00:00
|
|
|
# define BOOST_HAS_GETTIMEOFDAY
|
2001-10-27 10:56:36 +00:00
|
|
|
# define BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE
|
2003-02-13 12:28:49 +00:00
|
|
|
# define BOOST_HAS_SIGACTION
|
2001-09-22 11:50:15 +00:00
|
|
|
#else
|
2001-11-10 12:14:59 +00:00
|
|
|
# if !defined(BOOST_HAS_WINTHREADS)
|
|
|
|
|
# define BOOST_HAS_WINTHREADS
|
|
|
|
|
# endif
|
2001-09-25 11:46:44 +00:00
|
|
|
# define BOOST_HAS_FTIME
|
2001-09-22 11:50:15 +00:00
|
|
|
#endif
|
|
|
|
|
|
2004-01-14 13:30:49 +00:00
|
|
|
//
|
|
|
|
|
// find out if we have a stdint.h, there should be a better way to do this:
|
|
|
|
|
//
|
|
|
|
|
#include <sys/types.h>
|
|
|
|
|
#ifdef _STDINT_H
|
|
|
|
|
#define BOOST_HAS_STDINT_H
|
|
|
|
|
#endif
|
|
|
|
|
|
2001-10-26 11:58:23 +00:00
|
|
|
// boilerplate code:
|
|
|
|
|
#include <boost/config/posix_features.hpp>
|
2001-09-18 11:13:39 +00:00
|
|
|
|
|
|
|
|
|
2001-11-10 12:14:59 +00:00
|
|
|
|
2003-10-04 11:29:20 +00:00
|
|
|
|