Commit e83a44d2 by Mohan Embar Committed by Tom Tromey

configure.in: define GC_DLL under mingw if --enable-shared

2003-04-28  Mohan Embar  <gnustuff@thisiscool.com>

	* configure.in: define GC_DLL under mingw if --enable-shared
	* configure: rebuilt
	* win32_threads.c: add #ifdef GC_DLL around DllMain

From-SVN: r66183
parent 0864034e
2003-04-28 Mohan Embar <gnustuff@thisiscool.com>
* configure.in: define GC_DLL under mingw if --enable-shared
* configure: rebuilt
* win32_threads.c: add #ifdef GC_DLL around DllMain
2003-04-16 Richard Earnshaw <rearnsha@arm.com> 2003-04-16 Richard Earnshaw <rearnsha@arm.com>
* include/private/gcconfig.h: Add support for arm-netbsdelf. * include/private/gcconfig.h: Add support for arm-netbsdelf.
......
...@@ -116,6 +116,9 @@ case "$THREADS" in ...@@ -116,6 +116,9 @@ case "$THREADS" in
win32) win32)
AC_DEFINE(GC_WIN32_THREADS) AC_DEFINE(GC_WIN32_THREADS)
AC_DEFINE(NO_GETENV) AC_DEFINE(NO_GETENV)
if test $enable_shared = yes; then
AC_DEFINE(GC_DLL)
fi
;; ;;
decosf1 | irix | mach | os2 | solaris | dce | vxworks) decosf1 | irix | mach | os2 | solaris | dce | vxworks)
AC_MSG_ERROR(thread package $THREADS not yet supported) AC_MSG_ERROR(thread package $THREADS not yet supported)
......
...@@ -527,6 +527,8 @@ DWORD WINAPI main_thread_start(LPVOID arg) ...@@ -527,6 +527,8 @@ DWORD WINAPI main_thread_start(LPVOID arg)
LONG WINAPI GC_write_fault_handler(struct _EXCEPTION_POINTERS *exc_info); LONG WINAPI GC_write_fault_handler(struct _EXCEPTION_POINTERS *exc_info);
#ifdef GC_DLL
/* /*
* This isn't generally safe, since DllMain is not premptible. * This isn't generally safe, since DllMain is not premptible.
* If another thread holds the lock while this runs we're in trouble. * If another thread holds the lock while this runs we're in trouble.
...@@ -635,6 +637,8 @@ BOOL WINAPI DllMain(HINSTANCE inst, ULONG reason, LPVOID reserved) ...@@ -635,6 +637,8 @@ BOOL WINAPI DllMain(HINSTANCE inst, ULONG reason, LPVOID reserved)
return TRUE; return TRUE;
} }
# endif /* GC_DLL */
# endif /* !MSWINCE */ # endif /* !MSWINCE */
#endif /* GC_WIN32_THREADS */ #endif /* GC_WIN32_THREADS */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment