diff options
| author | Wladimir J. van der Laan <[email protected]> | 2012-03-18 23:14:03 +0100 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2012-04-03 20:22:41 +0200 |
| commit | 52d3a48128b66e731afd54cec7cab0a687d303cf (patch) | |
| tree | ade3bfd91c7e92ed83ea79219ed773fbc009ee0e /src/serialize.h | |
| parent | Merge pull request #934 from luke-jr/gitian_luke (diff) | |
| download | discoin-52d3a48128b66e731afd54cec7cab0a687d303cf.tar.xz discoin-52d3a48128b66e731afd54cec7cab0a687d303cf.zip | |
VC2010 compile fixes
Diffstat (limited to 'src/serialize.h')
| -rw-r--r-- | src/serialize.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/serialize.h b/src/serialize.h index 25777fe3c..227bfb927 100644 --- a/src/serialize.h +++ b/src/serialize.h @@ -24,12 +24,15 @@ typedef unsigned long long uint64; #ifdef WIN32 #define _WIN32_WINNT 0x0501 +#define WIN32_LEAN_AND_MEAN 1 +#ifndef NOMINMAX +#define NOMINMAX +#endif #include <windows.h> // This is used to attempt to keep keying material out of swap // Note that VirtualLock does not provide this as a guarantee on Windows, // but, in practice, memory that has been VirtualLock'd almost never gets written to // the pagefile except in rare circumstances where memory is extremely low. -#include <windows.h> #define mlock(p, n) VirtualLock((p), (n)); #define munlock(p, n) VirtualUnlock((p), (n)); #else |