diff network.h @ 533:52c56ada3816

Fix Win32/MinGW cross-compilation target to work with Debian's gcc-mingw-w64 package, thus upgrading to a new version of MinGW and GCC. Yay.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 07 Jun 2012 03:16:39 +0300
parents 691400f1c9bb
children 6e5789cbb4d4
line wrap: on
line diff
--- a/network.h	Wed Jun 06 18:55:17 2012 +0300
+++ b/network.h	Thu Jun 07 03:16:39 2012 +0300
@@ -12,6 +12,7 @@
 #include "th_string.h"
 
 #ifdef __WIN32
+#define __OBJC__ // A nasty hack
 #include <windows.h>
 #include <winsock.h>
 typedef uint16_t in_port_t;