Only include windows headers when under windows.
authorBen Laurie <ben@openssl.org>
Wed, 4 Jun 2008 05:21:13 +0000 (05:21 +0000)
committerBen Laurie <ben@openssl.org>
Wed, 4 Jun 2008 05:21:13 +0000 (05:21 +0000)
engines/e_capi.c

index f56f8b53f034c5f01240082533970f1fe3b4ee0a..c7833fc1739ca9acf728d8bb900a78c2e7392b31 100644 (file)
@@ -54,8 +54,6 @@
 
 #include <stdio.h>
 #include <string.h>
 
 #include <stdio.h>
 #include <string.h>
-#include <windows.h>
-#include <wincrypt.h>
 #include <openssl/crypto.h>
 #include <openssl/buffer.h>
 #include <openssl/engine.h>
 #include <openssl/crypto.h>
 #include <openssl/buffer.h>
 #include <openssl/engine.h>
@@ -70,6 +68,8 @@
 #define _WIN32_WINNT 0x400
 #endif
 
 #define _WIN32_WINNT 0x400
 #endif
 
+#include <windows.h>
+#include <wincrypt.h>
 
 #include "e_capi_err.h"
 #include "e_capi_err.c"
 
 #include "e_capi_err.h"
 #include "e_capi_err.c"