Always define NOMINMAX and friends globally

Repeating this every time is worse than defining them in the compiler
command line.
This commit is contained in:
Robbert van der Helm
2021-05-11 02:22:39 +02:00
parent 5577c4bfd8
commit af299f3c66
4 changed files with 20 additions and 35 deletions
-5
View File
@@ -18,11 +18,6 @@
#include "../boost-fix.h"
#ifndef NOMINMAX
#define NOMINMAX
#define __WINE_WINSOCKAPI_STDLIB_H
#define _WINSOCKAPI_
#endif
#include <vestige/aeffectx.h>
#include <windows.h>
-5
View File
@@ -20,11 +20,6 @@
#include <optional>
#include <string>
#ifndef NOMINMAX
#define NOMINMAX
#define __WINE_WINSOCKAPI_STDLIB_H
#define _WINSOCKAPI_
#endif
#include <windows.h>
#include <function2/function2.hpp>
-6
View File
@@ -23,13 +23,7 @@
#include <optional>
#include <set>
#ifndef NOMINMAX
#define NOMINMAX
#define __WINE_WINSOCKAPI_STDLIB_H
#define _WINSOCKAPI_
#endif
#include <windows.h>
#include <boost/asio/dispatch.hpp>
#include <boost/asio/io_context.hpp>
#include <function2/function2.hpp>