aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/rng/system_rng/system_rng.cpp
diff options
context:
space:
mode:
authorBaruch Burstein <[email protected]>2016-11-28 10:20:02 +0200
committerBaruch Burstein <[email protected]>2016-11-28 10:20:02 +0200
commitc8f16b889f8899dc06452508662c45f99d43fee7 (patch)
tree4a23d9346afb6240e3f6ae229f142fc946b71df9 /src/lib/rng/system_rng/system_rng.cpp
parentf11d1bf525d1c77514bac61b309bd604c92acbfd (diff)
define NOMINMAX 1 before every include of windows.h
Diffstat (limited to 'src/lib/rng/system_rng/system_rng.cpp')
-rw-r--r--src/lib/rng/system_rng/system_rng.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/rng/system_rng/system_rng.cpp b/src/lib/rng/system_rng/system_rng.cpp
index 1ea749327..eaba38241 100644
--- a/src/lib/rng/system_rng/system_rng.cpp
+++ b/src/lib/rng/system_rng/system_rng.cpp
@@ -10,9 +10,8 @@
#if defined(BOTAN_TARGET_OS_HAS_CRYPTGENRANDOM)
#include <windows.h>
+#define NOMINMAX 1
#include <wincrypt.h>
-#undef min
-#undef max
#else