]> git.lyx.org Git - lyx.git/blob - boost/boost/config/platform/cygwin.hpp
make boost compile without exceptions
[lyx.git] / boost / boost / config / platform / cygwin.hpp
1 //  (C) Copyright Boost.org 2001. Permission to copy, use, modify, sell and
2 //  distribute this software is granted provided this copyright notice appears
3 //  in all copies. This software is provided "as is" without express or implied
4 //  warranty, and with no claim as to its suitability for any purpose.
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
15 //
16 // Threading API:
17 // See if we have POSIX threads, if we do use them, otherwise
18 // revert to native Win threads.
19 #define BOOST_HAS_UNISTD_H
20 #include <unistd.h>
21 #if defined(_POSIX_THREADS) && (_POSIX_THREADS+0 >= 0) && !defined(BOOST_HAS_WINTHREADS)
22 #  define BOOST_HAS_PTHREADS
23 #  define BOOST_HAS_SCHED_YIELD
24 #  define BOOST_HAS_GETTIMEOFDAY
25 #  define BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE
26 #else
27 #  if !defined(BOOST_HAS_WINTHREADS)
28 #     define BOOST_HAS_WINTHREADS
29 #  endif
30 #  define BOOST_HAS_FTIME
31 #endif
32
33 // boilerplate code:
34 #include <boost/config/posix_features.hpp>
35  
36
37