blob: 30022ff6f13417ec640307ab9cced85752bdca39 [file] [log] [blame]
Jeff Thompsonf7d49942013-08-01 16:47:40 -07001// (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
Jeff Thompson3d613fd2013-10-15 15:39:04 -070010#define NDNBOOST_PLATFORM "Cygwin"
11#define NDNBOOST_HAS_DIRENT_H
12#define NDNBOOST_HAS_LOG1P
13#define NDNBOOST_HAS_EXPM1
Jeff Thompsonf7d49942013-08-01 16:47:40 -070014
15//
16// Threading API:
17// See if we have POSIX threads, if we do use them, otherwise
18// revert to native Win threads.
Jeff Thompson3d613fd2013-10-15 15:39:04 -070019#define NDNBOOST_HAS_UNISTD_H
Jeff Thompsonf7d49942013-08-01 16:47:40 -070020#include <unistd.h>
Jeff Thompson3d613fd2013-10-15 15:39:04 -070021#if defined(_POSIX_THREADS) && (_POSIX_THREADS+0 >= 0) && !defined(NDNBOOST_HAS_WINTHREADS)
22# define NDNBOOST_HAS_PTHREADS
23# define NDNBOOST_HAS_SCHED_YIELD
24# define NDNBOOST_HAS_GETTIMEOFDAY
25# define NDNBOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE
26# define NDNBOOST_HAS_SIGACTION
Jeff Thompsonf7d49942013-08-01 16:47:40 -070027#else
Jeff Thompson3d613fd2013-10-15 15:39:04 -070028# if !defined(NDNBOOST_HAS_WINTHREADS)
29# define NDNBOOST_HAS_WINTHREADS
Jeff Thompsonf7d49942013-08-01 16:47:40 -070030# endif
Jeff Thompson3d613fd2013-10-15 15:39:04 -070031# define NDNBOOST_HAS_FTIME
Jeff Thompsonf7d49942013-08-01 16:47:40 -070032#endif
33
34//
35// find out if we have a stdint.h, there should be a better way to do this:
36//
37#include <sys/types.h>
38#ifdef _STDINT_H
Jeff Thompson3d613fd2013-10-15 15:39:04 -070039#define NDNBOOST_HAS_STDINT_H
Jeff Thompsonf7d49942013-08-01 16:47:40 -070040#endif
41
42/// Cygwin has no fenv.h
Jeff Thompson3d613fd2013-10-15 15:39:04 -070043#define NDNBOOST_NO_FENV_H
Jeff Thompsonf7d49942013-08-01 16:47:40 -070044
45// boilerplate code:
Jeff Thompson2277ce52013-08-01 17:34:11 -070046#include <ndnboost/config/posix_features.hpp>
Jeff Thompsonf7d49942013-08-01 16:47:40 -070047
48//
49// Cygwin lies about XSI conformance, there is no nl_types.h:
50//
Jeff Thompson3d613fd2013-10-15 15:39:04 -070051#ifdef NDNBOOST_HAS_NL_TYPES_H
52# undef NDNBOOST_HAS_NL_TYPES_H
Jeff Thompsonf7d49942013-08-01 16:47:40 -070053#endif
54
55
56
57
58