* misc.c (GC_get_thr_restart_signal): Implement for Darwin and Win32
(always returns -1) if THREADS.
* pthread_stop_world.c (GC_get_thr_restart_signal): Remove
implementation for Darwin/Win32 (since the file might not be included
for these targets).
return -1;
# endif
}
+
+# if defined(GC_DARWIN_THREADS) || defined(GC_WIN32_THREADS)
+ GC_API int GC_CALL GC_get_thr_restart_signal(void)
+ {
+ return -1; /* GC does not use signals to restart threads. */
+ }
+# endif
#endif /* THREADS */
#ifdef GC_READ_ENV_FILE
# endif
}
-#else /* defined(GC_PTHREADS) && !defined(GC_WIN32_THREADS) && \
- !defined(GC_DARWIN_THREADS) */
-
- GC_API int GC_CALL GC_get_thr_restart_signal(void)
- {
- return -1;
- }
-
#endif