Author: spouliot
Date: 2005-03-29 13:11:59 -0500 (Tue, 29 Mar 2005)
New Revision: 42347
Added:
trunk/mono/mono/os/ChangeLog
Modified:
trunk/mono/mono/os/gc_wrapper.h
Log:
2005-03-29 Sebastien Pouliot <[EMAIL PROTECTED]>
* gc_wrapper.h: Add required winsock2.h header for compiling with
VS.NET and let the project file defines GC_GCJ_SUPPORT (to avoid
tons of warnings).
Added: trunk/mono/mono/os/ChangeLog
===================================================================
--- trunk/mono/mono/os/ChangeLog 2005-03-29 18:09:05 UTC (rev 42346)
+++ trunk/mono/mono/os/ChangeLog 2005-03-29 18:11:59 UTC (rev 42347)
@@ -0,0 +1,5 @@
+2005-03-29 Sebastien Pouliot <[EMAIL PROTECTED]>
+
+ * gc_wrapper.h: Add required winsock2.h header for compiling with
+ VS.NET and let the project file defines GC_GCJ_SUPPORT (to avoid
+ tons of warnings).
Modified: trunk/mono/mono/os/gc_wrapper.h
===================================================================
--- trunk/mono/mono/os/gc_wrapper.h 2005-03-29 18:09:05 UTC (rev 42346)
+++ trunk/mono/mono/os/gc_wrapper.h 2005-03-29 18:11:59 UTC (rev 42347)
@@ -5,10 +5,15 @@
#ifdef HAVE_BOEHM_GC
- /* libgc specifies this on the command line,
- * so we must define it ourselfs
- */
-# define GC_GCJ_SUPPORT
+# ifdef _MSC_VER
+# include <winsock2.h>
+# else
+ /* libgc specifies this on the command line,
+ * so we must define it ourselfs
+ */
+# define GC_GCJ_SUPPORT
+# endif
+
/*
* Local allocation is only beneficial if we have __thread
* We had to fix a bug with include order in libgc, so only do
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches