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 authored and Eric Niebler committed 2014-08-03 13:44:11 -07:00
1 parent 614ae2bd7f
commit dcf45d36e5
5 files changed
+171

No files matched your search

+8
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
{