1/*
2Copyright Rene Rivera 2008-2015
3Distributed under the Boost Software License, Version 1.0.
4(See accompanying file LICENSE_1_0.txt or copy at
5http://www.boost.org/LICENSE_1_0.txt)
6*/
7
8#ifndef BOOST_PREDEF_OS_CYGWIN_H
9#define BOOST_PREDEF_OS_CYGWIN_H
10
11#include <boost/predef/version_number.h>
12#include <boost/predef/make.h>
13
14/* tag::reference[]
15= `BOOST_OS_CYGWIN`
16
17http://en.wikipedia.org/wiki/Cygwin[Cygwin] evironment.
18
19[options="header"]
20|===
21| {predef_symbol} | {predef_version}
22
23| `+__CYGWIN__+` | {predef_detection}
24
25| `CYGWIN_VERSION_API_MAJOR`, `CYGWIN_VERSION_API_MINOR` | V.R.0
26|===
27*/ // end::reference[]
28
29#define BOOST_OS_CYGWIN BOOST_VERSION_NUMBER_NOT_AVAILABLE
30
31#if !defined(BOOST_PREDEF_DETAIL_OS_DETECTED) && ( \
32 defined(__CYGWIN__) \
33 )
34# include <cygwin/version.h>
35# undef BOOST_OS_CYGWIN
36# define BOOST_OS_CYGWIN \
37 BOOST_VERSION_NUMBER(CYGWIN_VERSION_API_MAJOR,\
38 CYGWIN_VERSION_API_MINOR, 0)
39#endif
40
41#if BOOST_OS_CYGWIN
42# define BOOST_OS_CYGWIN_AVAILABLE
43# include <boost/predef/detail/os_detected.h>
44#endif
45
46#define BOOST_OS_CYGWIN_NAME "Cygwin"
47
48#endif
49
50#include <boost/predef/detail/test.h>
51BOOST_PREDEF_DECLARE_TEST(BOOST_OS_CYGWIN,BOOST_OS_CYGWIN_NAME)
52

source code of include/boost/predef/os/cygwin.h