]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/winapi/test/compile/windows_h_post.cpp
update sources to v12.2.3
[ceph.git] / ceph / src / boost / libs / winapi / test / compile / windows_h_post.cpp
CommitLineData
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 being post-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
b32b8144 22#define BOOST_WINAPI_TEST_INCLUDE_HEADER() <boost/BOOST_WINAPI_TEST_HEADER>
7c673cae
FG
23
24#include BOOST_WINAPI_TEST_INCLUDE_HEADER()
25
26#include <windows.h>
27
28#endif // BOOST_OS_WINDOWS
29
30int main(int, char*[])
31{
32 return 0;
33}