1 | // (C) Copyright John Maddock 2001 - 2003.
|
---|
2 | // Use, modification and distribution are subject to the
|
---|
3 | // Boost Software License, Version 1.0. (See accompanying file
|
---|
4 | // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
---|
5 |
|
---|
6 | // See http://www.boost.org for most recent version.
|
---|
7 |
|
---|
8 | // cygwin specific config options:
|
---|
9 |
|
---|
10 | #define BOOST_PLATFORM "Cygwin"
|
---|
11 | #define BOOST_NO_CWCTYPE
|
---|
12 | #define BOOST_NO_CWCHAR
|
---|
13 | #define BOOST_NO_SWPRINTF
|
---|
14 | #define BOOST_HAS_DIRENT_H
|
---|
15 |
|
---|
16 | //
|
---|
17 | // Threading API:
|
---|
18 | // See if we have POSIX threads, if we do use them, otherwise
|
---|
19 | // revert to native Win threads.
|
---|
20 | #define BOOST_HAS_UNISTD_H
|
---|
21 | #include <unistd.h>
|
---|
22 | #if defined(_POSIX_THREADS) && (_POSIX_THREADS+0 >= 0) && !defined(BOOST_HAS_WINTHREADS)
|
---|
23 | # define BOOST_HAS_PTHREADS
|
---|
24 | # define BOOST_HAS_SCHED_YIELD
|
---|
25 | # define BOOST_HAS_GETTIMEOFDAY
|
---|
26 | # define BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE
|
---|
27 | # define BOOST_HAS_SIGACTION
|
---|
28 | #else
|
---|
29 | # if !defined(BOOST_HAS_WINTHREADS)
|
---|
30 | # define BOOST_HAS_WINTHREADS
|
---|
31 | # endif
|
---|
32 | # define BOOST_HAS_FTIME
|
---|
33 | #endif
|
---|
34 |
|
---|
35 | //
|
---|
36 | // find out if we have a stdint.h, there should be a better way to do this:
|
---|
37 | //
|
---|
38 | #include <sys/types.h>
|
---|
39 | #ifdef _STDINT_H
|
---|
40 | #define BOOST_HAS_STDINT_H
|
---|
41 | #endif
|
---|
42 |
|
---|
43 | // boilerplate code:
|
---|
44 | #include <boost/config/posix_features.hpp>
|
---|
45 |
|
---|
46 |
|
---|
47 |
|
---|
48 |
|
---|