1
0
This repository has been archived on 2025-03-06. You can view files and clone it, but cannot push or open issues or pull requests.
Jip J. Dekker 2572df0663 Squashed 'software/gecode_base/' content from commit bbefcea214
git-subtree-dir: software/gecode_base
git-subtree-split: bbefcea214fec798a0f5acc442581984555acd21
2021-07-11 17:26:05 +10:00

59 lines
1.5 KiB
C++

// (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 GECODE_BOOST_PLATFORM "Cygwin"
#define GECODE_BOOST_HAS_DIRENT_H
#define GECODE_BOOST_HAS_LOG1P
#define GECODE_BOOST_HAS_EXPM1
//
// Threading API:
// See if we have POSIX threads, if we do use them, otherwise
// revert to native Win threads.
#define GECODE_BOOST_HAS_UNISTD_H
#include <unistd.h>
#if defined(_POSIX_THREADS) && (_POSIX_THREADS+0 >= 0) && !defined(GECODE_BOOST_HAS_WINTHREADS)
# define GECODE_BOOST_HAS_PTHREADS
# define GECODE_BOOST_HAS_SCHED_YIELD
# define GECODE_BOOST_HAS_GETTIMEOFDAY
# define GECODE_BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE
# define GECODE_BOOST_HAS_SIGACTION
#else
# if !defined(GECODE_BOOST_HAS_WINTHREADS)
# define GECODE_BOOST_HAS_WINTHREADS
# endif
# define GECODE_BOOST_HAS_FTIME
#endif
//
// 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 GECODE_BOOST_HAS_STDINT_H
#endif
/// Cygwin has no fenv.h
#define GECODE_BOOST_NO_FENV_H
// boilerplate code:
#include <gecode/third-party/boost/config/posix_features.hpp>
//
// Cygwin lies about XSI conformance, there is no nl_types.h:
//
#ifdef GECODE_BOOST_HAS_NL_TYPES_H
# undef GECODE_BOOST_HAS_NL_TYPES_H
#endif