summaryrefslogtreecommitdiffstats
path: root/src/apr-1.patch
blob: de94bb252887ab603bfae0cdeebf8318243a630e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
This file is part of MXE.
See index.html for further information.

From d221ed3c7576a3456a8f5623246b46d355a4db83 Mon Sep 17 00:00:00 2001
From: Mark Brand <mabrand@mabrand.nl>
Date: Sun, 9 Feb 2014 02:48:38 +0100
Subject: [PATCH] winsock2.h must precede windows.h

MinGW 4 is particular about this.

diff --git a/include/apr.h.in b/include/apr.h.in
index 9f1fb6f..f1741c1 100644
--- a/include/apr.h.in
+++ b/include/apr.h.in
@@ -115,14 +115,14 @@
  * or the extern "C" namespace 
  */
 
-#if APR_HAVE_WINDOWS_H
-#include <windows.h>
-#endif
-
 #if APR_HAVE_WINSOCK2_H
 #include <winsock2.h>
 #endif
 
+#if APR_HAVE_WINDOWS_H
+#include <windows.h>
+#endif
+
 #if APR_HAVE_SYS_TYPES_H
 #include <sys/types.h>
 #endif
-- 
1.8.4.5