diff options
author | Baruch Burstein <[email protected]> | 2016-11-28 10:20:02 +0200 |
---|---|---|
committer | Baruch Burstein <[email protected]> | 2016-11-28 10:20:02 +0200 |
commit | c8f16b889f8899dc06452508662c45f99d43fee7 (patch) | |
tree | 4a23d9346afb6240e3f6ae229f142fc946b71df9 /src/lib/utils | |
parent | f11d1bf525d1c77514bac61b309bd604c92acbfd (diff) |
define NOMINMAX 1 before every include of windows.h
Diffstat (limited to 'src/lib/utils')
-rw-r--r-- | src/lib/utils/dyn_load/dyn_load.cpp | 1 | ||||
-rw-r--r-- | src/lib/utils/mem_ops.cpp | 1 | ||||
-rw-r--r-- | src/lib/utils/os_utils.cpp | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/utils/dyn_load/dyn_load.cpp b/src/lib/utils/dyn_load/dyn_load.cpp index df6777e58..1f33dc761 100644 --- a/src/lib/utils/dyn_load/dyn_load.cpp +++ b/src/lib/utils/dyn_load/dyn_load.cpp @@ -12,6 +12,7 @@ #if defined(BOTAN_TARGET_OS_HAS_DLOPEN) #include <dlfcn.h> #elif defined(BOTAN_TARGET_OS_HAS_LOADLIBRARY) + #define NOMINMAX 1 #include <windows.h> #endif diff --git a/src/lib/utils/mem_ops.cpp b/src/lib/utils/mem_ops.cpp index 461b03d6b..a0cd3124f 100644 --- a/src/lib/utils/mem_ops.cpp +++ b/src/lib/utils/mem_ops.cpp @@ -8,6 +8,7 @@ #include <botan/mem_ops.h> #if defined(BOTAN_TARGET_OS_HAS_RTLSECUREZEROMEMORY) + #define NOMINMAX 1 #include <windows.h> #endif diff --git a/src/lib/utils/os_utils.cpp b/src/lib/utils/os_utils.cpp index 1e60596ba..d072b2c2b 100644 --- a/src/lib/utils/os_utils.cpp +++ b/src/lib/utils/os_utils.cpp @@ -20,6 +20,7 @@ #endif #if defined(BOTAN_TARGET_OS_IS_WINDOWS) || defined(BOTAN_TARGET_OS_IS_MINGW) + #define NOMINMAX 1 #include <windows.h> #endif |