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



commit aff9143b35537a1636889988aa5384f60ec39052
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 9169d24..427c3e4 100644
--- a/src/win32/win32dep.h
+++ b/src/win32/win32dep.h
@@ -23,8 +23,8 @@
 #ifndef _WIN32DEP_H_
 #define _WIN32DEP_H_
 
-#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]