]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/winapi/test/compile/windows_h_pre.cpp
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)
8 * \file windows_h_header.cpp
9 * \author Andrey Semashev
12 * \brief This file contains a test boilerplate for checking that every public header does not conflict with native windows.h pre-included.
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>
24 #define BOOST_WINAPI_TEST_INCLUDE_HEADER() <boost/BOOST_WINAPI_TEST_HEADER>
26 #include BOOST_WINAPI_TEST_INCLUDE_HEADER()
28 #endif // BOOST_OS_WINDOWS
30 int main(int, char*[])