]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/winapi/test/compile/windows_h_pre.cpp
update sources to v12.2.3
[ceph.git] / ceph / src / boost / libs / winapi / test / compile / windows_h_pre.cpp
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
24 #define BOOST_WINAPI_TEST_INCLUDE_HEADER() <boost/BOOST_WINAPI_TEST_HEADER>
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 }