Neither MinGW or Cygwin versions of winerror.h work if used alone, so on either of these platforms include the full windows.h. Move reporting of configuration to a separate config_test.cpp program, and expand the coverage to report more macros.

This commit is contained in:
Beman
2014-08-01 10:49:40 -04:00
committed by Eric Niebler
parent 614ae2bd7f
commit dcf45d36e5
5 changed files with 171 additions and 0 deletions

View File

@@ -18,7 +18,15 @@
#ifdef BOOST_WINDOWS_API
#include <boost/system/error_code.hpp>
// Neither MinGW or Cygwin versions of winerror.h work if used alone, so on
// either of those platforms include the full windows.h
#if defined(__MINGW32__) || defined(__CYGWIN__)
#include <windows.h>
#else
#include <winerror.h>
#endif
namespace boost
{