From b6fb51b27a6b489c4a4a01fdd8c3cb07878925d3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Kim=20Gr=C3=A4sman?= <kim.grasman@schneider-electric.com>
Date: Tue, 18 Aug 2015 08:44:10 +0200
Subject: [PATCH] Fix include order problem in rand.h on Windows.

Include <windows.h> before <openssl/ossl_typ.h> to prevent
<wincrypt.h> from hiding X509_NAME and friends.
---
 include/openssl/rand.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/include/openssl/rand.h b/include/openssl/rand.h
index 0086c07..e63f1cc 100644
--- a/include/openssl/rand.h
+++ b/include/openssl/rand.h
@@ -60,13 +60,14 @@
 # define HEADER_RAND_H
 
 # include <stdlib.h>
-# include <openssl/ossl_typ.h>
 # include <openssl/e_os2.h>
 
 # if defined(OPENSSL_SYS_WINDOWS)
 #  include <windows.h>
 # endif
 
+# include <openssl/ossl_typ.h>
+
 #ifdef  __cplusplus
 extern "C" {
 #endif
-- 
1.9.1

