r349 - trunk

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Tue Sep 25 05:23:44 EDT 2007


Author: icculus
Date: 2007-09-25 05:23:44 -0400 (Tue, 25 Sep 2007)
New Revision: 349

Modified:
   trunk/gui_www.c
Log:
Prevent conflicts between the system headers and universal.h on Windows by
 trimming the massive dependencies that winsock.h -> windows.h pulls in by
 default.


Modified: trunk/gui_www.c
===================================================================
--- trunk/gui_www.c	2007-09-25 09:19:37 UTC (rev 348)
+++ trunk/gui_www.c	2007-09-25 09:23:44 UTC (rev 349)
@@ -19,16 +19,13 @@
 CREATE_MOJOGUI_ENTRY_POINT(www)
 #endif
 
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
 #include <stdarg.h>
 
 #define FREE_AND_NULL(x) { free(x); x = NULL; }
 
-
 // tapdance between things WinSock and BSD Sockets define differently...
 #if PLATFORM_WINDOWS
+    #define WIN32_LEAN_AND_MEAN
     #include <winsock.h>
 
     typedef int socklen_t;




More information about the mojosetup-commits mailing list