2001-09-18 11:13:39 +00:00
|
|
|
// (C) Copyright Boost.org 2001. Permission to copy, use, modify, sell and
|
|
|
|
|
// distribute this software is granted provided this copyright notice appears
|
|
|
|
|
// in all copies. This software is provided "as is" without express or implied
|
|
|
|
|
// warranty, and with no claim as to its suitability for any purpose.
|
|
|
|
|
|
|
|
|
|
// 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
|
|
|
|
|
|
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.
|
|
|
|
|
#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-09-22 11:50:15 +00:00
|
|
|
#else
|
2001-09-25 11:46:44 +00:00
|
|
|
# define BOOST_HAS_WINTHREADS
|
|
|
|
|
# define BOOST_HAS_FTIME
|
2001-09-22 11:50:15 +00:00
|
|
|
#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
|
|
|
|
|
|
|
|
|