From 0830b25dc35fe52936eb96e2d02118a5881ffcae Mon Sep 17 00:00:00 2001 From: Vincent Povirk Date: Thu, 26 May 2016 16:50:42 -0500 Subject: [win32_threads] Mark an inline function as static. 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libgc') diff --git a/libgc/win32_threads.c b/libgc/win32_threads.c index 16a6fb6d003..5533b8f2e25 100644 --- a/libgc/win32_threads.c +++ b/libgc/win32_threads.c @@ -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; -- cgit v1.2.3