boost/libs/winapi/test/compile/decl_header.cpp
2018-01-12 21:47:58 +01:00

32 lines
988 B
C++

/*
* Copyright Andrey Semashev 2015.
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE_1_0.txt or copy at
* http://www.boost.org/LICENSE_1_0.txt)
*/
/*!
* \file decl_header.cpp
* \author Andrey Semashev
* \date 21.06.2015
*
* \brief This file contains a test boilerplate for checking that every public header is self-contained and does not have any missing #includes.
*/
// NOTE: Use Boost.Predef, the most fine graned header to detect Windows. This header should not include anything
// system- or STL-specific so that the check for Boost.WinAPI header self-sufficiency is not subverted.
// Boost.Config does not satisfy this requirement.
#include <boost/predef/os/windows.h>
#if BOOST_OS_WINDOWS
#define BOOST_WINAPI_TEST_INCLUDE_HEADER() <boost/BOOST_WINAPI_TEST_HEADER>
#include BOOST_WINAPI_TEST_INCLUDE_HEADER()
#endif // BOOST_OS_WINDOWS
int main(int, char*[])
{
return 0;
}