1 | /* |
2 | Copyright Rene Rivera 2008-2013 |
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 | /*` |
15 | [heading `BOOST_OS_WINDOWS`] |
16 | |
17 | [@http://en.wikipedia.org/wiki/Category:Microsoft_Windows Microsoft Windows] operating system. |
18 | |
19 | [table |
20 | [[__predef_symbol__] [__predef_version__]] |
21 | |
22 | [[`_WIN32`] [__predef_detection__]] |
23 | [[`_WIN64`] [__predef_detection__]] |
24 | [[`__WIN32__`] [__predef_detection__]] |
25 | [[`__TOS_WIN__`] [__predef_detection__]] |
26 | [[`__WINDOWS__`] [__predef_detection__]] |
27 | ] |
28 | */ |
29 | |
30 | #define BOOST_OS_WINDOWS BOOST_VERSION_NUMBER_NOT_AVAILABLE |
31 | |
32 | #if !defined(BOOST_PREDEF_DETAIL_OS_DETECTED) && ( \ |
33 | defined(_WIN32) || defined(_WIN64) || \ |
34 | defined(__WIN32__) || defined(__TOS_WIN__) || \ |
35 | defined(__WINDOWS__) \ |
36 | ) |
37 | # undef BOOST_OS_WINDOWS |
38 | # define BOOST_OS_WINDOWS BOOST_VERSION_NUMBER_AVAILABLE |
39 | #endif |
40 | |
41 | #if BOOST_OS_WINDOWS |
42 | # define BOOST_OS_WINDOWS_AVAILABLE |
43 | # include <boost/predef/detail/os_detected.h> |
44 | #endif |
45 | |
46 | #define BOOST_OS_WINDOWS_NAME "Microsoft Windows" |
47 | |
48 | #include <boost/predef/detail/test.h> |
49 | BOOST_PREDEF_DECLARE_TEST(BOOST_OS_WINDOWS,BOOST_OS_WINDOWS_NAME) |
50 | |
51 | #endif |
52 | |