]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/winapi/test/compile/decl_header.cpp
update sources to v12.2.3
[ceph.git] / ceph / src / boost / libs / winapi / test / compile / decl_header.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 decl_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 is self-contained and does not have any missing #includes.
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#endif // BOOST_OS_WINDOWS
27
28int main(int, char*[])
29{
30 return 0;
31}