Files
boost_config/include/boost/config/platform/cygwin.hpp
T

48 lines
1.2 KiB
C++
Raw Normal View History

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)
// See http://www.boost.org for most recent version.
// 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
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
# 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
// boilerplate code:
#include <boost/config/posix_features.hpp>
2003-10-04 11:29:20 +00:00
2007-10-07 11:10:24 +00:00