This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Patch for Preview: Escape DllMain in boehm-gc
- From: Mohan Embar <gnustuff at thisiscool dot com>
- To: java-patches at gcc dot gnu dot org
- Date: Sun, 23 Feb 2003 10:45:06 -0600
- Subject: Patch for Preview: Escape DllMain in boehm-gc
- Reply-to: gnustuff at thisiscool dot com
Ranjit,
Here is an attempt at the patch for this issue:
http://gcc.gnu.org/ml/java/2003-02/msg00291.html
>From the messages, it seemed that all I had to do was
the #ifdef. Is more needed? Can you give your seal of
approval (or disdain)?
-- Mohan
http://www.thisiscool.com/
http://www.animalsong.org/
ChangeLog
2003-02-23 Mohan Embar <gnustuff at thisiscool dot com>
* win32_threads.c: Add #ifdef GC_DLL around DllMain
Index: win32_threads.c
===================================================================
RCS file: /cvsroot/gcc/gcc/boehm-gc/win32_threads.c,v
retrieving revision 1.12
diff -u -2 -r1.12 win32_threads.c
--- win32_threads.c 24 Sep 2002 00:59:52 -0000 1.12
+++ win32_threads.c 22 Feb 2003 03:44:51 -0000
@@ -528,4 +528,6 @@
LONG WINAPI GC_write_fault_handler(struct _EXCEPTION_POINTERS *exc_info);
+#ifdef GC_DLL
+
/*
* This isn't generally safe, since DllMain is not premptible.
@@ -635,4 +637,6 @@
return TRUE;
}
+
+# endif /* GC_DLL */
# endif /* !MSWINCE */