This file is part of MXE. See LICENSE.md for licensing information.

From 1e244993f497ca7167361dfb29a2fe43232a7661 Mon Sep 17 00:00:00 2001
From: Timothy Gu <timothygu99@gmail.com>
Date: Thu, 13 Nov 2014 00:17:19 -0500
Subject: [PATCH] Include windows.h after winsock2.h

Signed-off-by: Timothy Gu <timothygu99@gmail.com>
---
 include/apr.h.in | 2 +-
 include/apr.hw   | 2 +-
 include/apr.hwc  | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/include/apr.h.in b/include/apr.h.in
index 0ad7a91..0d70142 100644
--- a/include/apr.h.in
+++ b/include/apr.h.in
@@ -142,7 +142,6 @@
 #define NOIME
 #endif
 
-#include <windows.h>
 /* 
  * Add a _very_few_ declarations missing from the restricted set of headers
  * (If this list becomes extensive, re-enable the required headers above!)
@@ -156,6 +155,7 @@
 #else
 #include <winsock.h>
 #endif
+#include <windows.h>
 
 #endif /* ndef _WINDOWS_ */
 #endif /* APR_HAVE_WINDOWS_H */
diff --git a/include/apr.hw b/include/apr.hw
index a75bc60..caa933c 100644
--- a/include/apr.hw
+++ b/include/apr.hw
@@ -95,7 +95,6 @@
 #ifndef NOIME
 #define NOIME
 #endif
-#include <windows.h>
 /* 
  * Add a _very_few_ declarations missing from the restricted set of headers
  * (If this list becomes extensive, re-enable the required headers above!)
@@ -109,6 +108,7 @@
 #else
 #include <winsock.h>
 #endif
+#include <windows.h>
 #endif /* !_WINDOWS_ */
 
 /**
diff --git a/include/apr.hwc b/include/apr.hwc
index 0579962..b171d48 100644
--- a/include/apr.hwc
+++ b/include/apr.hwc
@@ -92,7 +92,6 @@
 #ifndef NOIME
 #define NOIME
 #endif
-#include <windows.h>
 /* 
  * Add a _very_few_ declarations missing from the restricted set of headers
  * (If this list becomes extensive, re-enable the required headers above!)
@@ -106,6 +105,7 @@
 #else
 #include <winsock.h>
 #endif
+#include <windows.h>
 #endif /* !_WINDOWS_ */
 
 /**
-- 
1.9.1

