2
0
mirror of https://github.com/boostorg/system.git synced 2026-02-01 09:02:08 +00:00

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
parent 0d0e14b3c5
commit 800fce3aaf
6 changed files with 171 additions and 31 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
{