[Gc] GC minor fix for Win32

Ivan Maidanski ivmai at mail.ru
Mon Oct 6 13:06:35 PDT 2008


Hi!

"excpt.h" file should be included even for non-Gnu compilers on MSWIN32 in mark.c (for GetExceptionCode macro to get defined). This is required at least for Watcom C (and doesn't hurt other Win32 compilers - VC++/IntelC++, Borland, DMC).

The patch is attached.

Bye.

-------------- next part --------------
diff -ru bdwgc/mark.c updated/bdwgc/mark.c
--- bdwgc/mark.c	2008-09-26 14:01:50.000000000 +0400
+++ updated/bdwgc/mark.c	2008-10-06 23:01:56.000000000 +0400
@@ -19,7 +19,7 @@
 # include <stdio.h>
 # include "private/gc_pmark.h"
 
-#if defined(MSWIN32) && defined(__GNUC__)
+#if defined(MSWIN32)
 # include <excpt.h>
 #endif
 


More information about the Gc mailing list