]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | /* |
2 | * Copyright Andrey Semashev 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 | * \file windows_h_header.cpp | |
9 | * \author Andrey Semashev | |
10 | * \date 21.06.2015 | |
11 | * | |
12 | * \brief This file contains a test boilerplate for checking that every public header does not conflict with native windows.h pre-included. | |
13 | */ | |
14 | ||
15 | // NOTE: Use Boost.Predef, the most fine graned header to detect Windows. This header should not include anything | |
16 | // system- or STL-specific so that the check for Boost.WinAPI header self-sufficiency is not subverted. | |
17 | // Boost.Config does not satisfy this requirement. | |
18 | #include <boost/predef/os/windows.h> | |
19 | ||
20 | #if BOOST_OS_WINDOWS | |
21 | ||
22 | #include <windows.h> | |
23 | ||
b32b8144 | 24 | #define BOOST_WINAPI_TEST_INCLUDE_HEADER() <boost/BOOST_WINAPI_TEST_HEADER> |
7c673cae FG |
25 | |
26 | #include BOOST_WINAPI_TEST_INCLUDE_HEADER() | |
27 | ||
28 | #endif // BOOST_OS_WINDOWS | |
29 | ||
30 | int main(int, char*[]) | |
31 | { | |
32 | return 0; | |
33 | } |