[win32_threads] Mark an inline function as static.
authorVincent Povirk <vincent@codeweavers.com>
Thu, 26 May 2016 21:50:42 +0000 (16:50 -0500)
committerVincent Povirk <vincent@codeweavers.com>
Thu, 26 May 2016 21:50:42 +0000 (16:50 -0500)
If the C compiler decides not to inline the function, and it's not declared
static, it'll look for an extern version, and linking will fail.

libgc/win32_threads.c

index 16a6fb6d003a0bdd7091fe7001b114482fdb826a..5533b8f2e252bf750dba873d24aeecf78b79facd 100644 (file)
@@ -184,7 +184,7 @@ static GC_thread GC_new_thread(void) {
 #ifdef __GNUC__
 __inline__
 #endif
-LONG GC_get_max_thread_index()
+static LONG GC_get_max_thread_index()
 {
   LONG my_max = GC_max_thread_index;