diff options
Diffstat (limited to 'boost/system/windows_error.hpp')
-rw-r--r-- | boost/system/windows_error.hpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/boost/system/windows_error.hpp b/boost/system/windows_error.hpp index fff3a98473..9d9d206c6b 100644 --- a/boost/system/windows_error.hpp +++ b/boost/system/windows_error.hpp @@ -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 { |