summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Povirk <vincent@codeweavers.com>2016-05-26 16:50:42 -0500
committerIvan Maidanski <ivmai@mail.ru>2016-06-02 00:35:34 +0300
commit788e136416dc6daee59b6a8b0ee9a3aff47074f8 (patch)
tree946469a5d11c9bc6b2d840cba8e7a2ca695a104f
parentaabc230c4753d7504e8e64a41bcbb4e7c386d9fe (diff)
downloadbdwgc-788e136416dc6daee59b6a8b0ee9a3aff47074f8.tar.gz
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.
-rw-r--r--win32_threads.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/win32_threads.c b/win32_threads.c
index 16a6fb6d..5533b8f2 100644
--- a/win32_threads.c
+++ b/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;