Fix min/max on MSVC

fix #1578
This commit is contained in:
Vinnie Falco
2019-04-19 11:36:00 -07:00
parent 0a334d96d1
commit e53ccf251c
10 changed files with 47 additions and 18 deletions
+7
View File
@@ -7,5 +7,12 @@
// Official repository: https://github.com/boostorg/beast
//
// If including Windows.h generates errors, it
// means that min/max macros are being substituted.
#ifdef _MSC_VER
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
#endif
// Test that header file is self-contained.
#include <boost/beast/core.hpp>
+7
View File
@@ -7,5 +7,12 @@
// Official repository: https://github.com/boostorg/beast
//
// If including Windows.h generates errors, it
// means that min/max macros are being substituted.
#ifdef _MSC_VER
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
#endif
// Test that header file is self-contained.
#include <boost/beast/http.hpp>
+7
View File
@@ -7,5 +7,12 @@
// Official repository: https://github.com/boostorg/beast
//
// If including Windows.h generates errors, it
// means that min/max macros are being substituted.
#ifdef _MSC_VER
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
#endif
// Test that header file is self-contained.
#include <boost/beast/ssl.hpp>
+7
View File
@@ -7,5 +7,12 @@
// Official repository: https://github.com/boostorg/beast
//
// If including Windows.h generates errors, it
// means that min/max macros are being substituted.
#ifdef _MSC_VER
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
#endif
// Test that header file is self-contained.
#include <boost/beast/version.hpp>
+7
View File
@@ -7,5 +7,12 @@
// Official repository: https://github.com/boostorg/beast
//
// If including Windows.h generates errors, it
// means that min/max macros are being substituted.
#ifdef _MSC_VER
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
#endif
// Test that header file is self-contained.
#include <boost/beast/websocket.hpp>
+7
View File
@@ -7,5 +7,12 @@
// Official repository: https://github.com/boostorg/beast
//
// If including Windows.h generates errors, it
// means that min/max macros are being substituted.
#ifdef _MSC_VER
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
#endif
// Test that header file is self-contained.
#include <boost/beast/zlib.hpp>