diff options
author | Nick Mathewson <nickm@torproject.org> | 2004-04-28 20:13:21 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2004-04-28 20:13:21 +0000 |
commit | 7055f837abeca974d3b73ed26b6d26898daa9e89 (patch) | |
tree | c087acf0452d4da39409c5e68f67c06e7da17d1d /src/common/crypto.c | |
parent | ca8d50abeb260898a6657a06423667479a621a22 (diff) | |
download | tor-7055f837abeca974d3b73ed26b6d26898daa9e89.tar.gz tor-7055f837abeca974d3b73ed26b6d26898daa9e89.zip |
Make Tor build on win32 with VC6 without warnings.
svn:r1739
Diffstat (limited to 'src/common/crypto.c')
-rw-r--r-- | src/common/crypto.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/common/crypto.c b/src/common/crypto.c index 8d8c78a1e3..4599e0cbb6 100644 --- a/src/common/crypto.c +++ b/src/common/crypto.c @@ -4,6 +4,14 @@ #include "orconfig.h" +#ifdef MS_WINDOWS +#define WIN32_WINNT 0x400 +#define _WIN32_WINNT 0x400 +#define WIN32_LEAN_AND_MEAN +#include <windows.h> +#include <wincrypt.h> +#endif + #include <string.h> #include <openssl/err.h> @@ -40,13 +48,6 @@ #include "aes.h" #include "util.h" -#ifdef MS_WINDOWS -#define WIN32_WINNT 0x400 -#define _WIN32_WINNT 0x400 -#define WIN32_LEAN_AND_MEAN -#include <wincrypt.h> -#endif - #if OPENSSL_VERSION_NUMBER < 0x00905000l #error "We require openssl >= 0.9.5" #elif OPENSSL_VERSION_NUMBER < 0x00906000l |