cygwin.hpp 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. // See http://www.boost.org for most recent version.
  6. // cygwin specific config options:
  7. #define BOOST_PLATFORM "Cygwin"
  8. #define BOOST_NO_CWCTYPE
  9. #define BOOST_NO_CWCHAR
  10. #define BOOST_NO_SWPRINTF
  11. #define BOOST_HAS_DIRENT_H
  12. #define BOOST_HAS_LOG1P
  13. #define BOOST_HAS_EXPM1
  14. //
  15. // Threading API:
  16. // See if we have POSIX threads, if we do use them, otherwise
  17. // revert to native Win threads.
  18. #define BOOST_HAS_UNISTD_H
  19. #include <unistd.h>
  20. #if defined(_POSIX_THREADS) && (_POSIX_THREADS+0 >= 0) && !defined(BOOST_HAS_WINTHREADS)
  21. # define BOOST_HAS_PTHREADS
  22. # define BOOST_HAS_SCHED_YIELD
  23. # define BOOST_HAS_GETTIMEOFDAY
  24. # define BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE
  25. # define BOOST_HAS_SIGACTION
  26. #else
  27. # if !defined(BOOST_HAS_WINTHREADS)
  28. # define BOOST_HAS_WINTHREADS
  29. # endif
  30. # define BOOST_HAS_FTIME
  31. #endif
  32. //
  33. // find out if we have a stdint.h, there should be a better way to do this:
  34. //
  35. #include <sys/types.h>
  36. #ifdef _STDINT_H
  37. #define BOOST_HAS_STDINT_H
  38. #endif
  39. // boilerplate code:
  40. #include <boost/config/posix_features.hpp>