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