[easytag/wip/mingw: 5/8] Improve windows.h versus winsock2.h include order



commit 747771f8ae3cad0fe94fa2cdd4fc349a3c6b94e3
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 252539d..0cc9506 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]