OSDN Git Service

2003-04-28 Mohan Embar <gnustuff@thisiscool.com>
[pf3gnuchains/gcc-fork.git] / boehm-gc / win32_threads.c
index 9987fc6..954b18d 100644 (file)
@@ -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.
  * If another thread holds the lock while this runs we're in trouble.
 /*
  * This isn't generally safe, since DllMain is not premptible.
  * 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)
   return TRUE;
 }
 
   return TRUE;
 }
 
+#   endif /* GC_DLL */
+
 # endif /* !MSWINCE */
 
 #endif /* GC_WIN32_THREADS */
 # endif /* !MSWINCE */
 
 #endif /* GC_WIN32_THREADS */