[easytag/wip/mingw: 10/14] Improve windows.h versus winsock2.h include order



commit eca76a459e9e7042c2aba2ef1bdf052708c03b68
Author: David King <amigadave amigadave com>
Date:   Tue Jan 15 22:12:31 2013 +0000

    Improve windows.h versus winsock2.h include order
    
    winsock2.h must be included before windows.h.

 src/win32/win32dep.c |    2 ++
 src/win32/win32dep.h |    2 +-
 2 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/win32/win32dep.c b/src/win32/win32dep.c
index ed62c3c..ce3b1b1 100644
--- a/src/win32/win32dep.c
+++ b/src/win32/win32dep.c
@@ -23,6 +23,8 @@
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  *
  */
+
+#include <winsock2.h>
 #include <windows.h>
 #include <io.h>
 #include <stdlib.h>
diff --git a/src/win32/win32dep.h b/src/win32/win32dep.h
index a0e554d..6aa6b10 100644
--- a/src/win32/win32dep.h
+++ b/src/win32/win32dep.h
@@ -26,8 +26,8 @@
 #include <glib.h> /* Needed for G_OS_WIN32. */
 
 #ifdef G_OS_WIN32
-#include <shlobj.h>
 #include <winsock2.h>
+#include <shlobj.h>
 #include <process.h>
 #include <gtk/gtk.h>
 #include <gdk/gdk.h>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]