From 7134be06379f2a964c0a84ecb7ac002f59ea3214 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Mon, 14 May 2012 13:04:13 -0400 Subject: [PATCH] MSVC build issue: add magic to make openssl headers in aes.c work --- src/common/aes.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/common/aes.c b/src/common/aes.c index c6bc2a821e..a9a018851b 100644 --- a/src/common/aes.c +++ b/src/common/aes.c @@ -10,6 +10,23 @@ **/ #include "orconfig.h" + +#ifdef _WIN32 /*wrkard for dtls1.h >= 0.9.8m of "#include "*/ + #ifndef WIN32_WINNT + #define WIN32_WINNT 0x400 + #endif + #ifndef _WIN32_WINNT + #define _WIN32_WINNT 0x400 + #endif + #define WIN32_LEAN_AND_MEAN + #if defined(_MSC_VER) && (_MSC_VER < 1300) + #include + #else + #include + #include + #endif +#endif + #include #include #include