projects
/
mono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5cb30c7
)
[win32_threads] Mark an inline function as static.
author
Vincent Povirk
<vincent@codeweavers.com>
Thu, 26 May 2016 21:50:42 +0000
(16:50 -0500)
committer
Vincent 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
patch
|
blob
|
history
diff --git
a/libgc/win32_threads.c
b/libgc/win32_threads.c
index 16a6fb6d003a0bdd7091fe7001b114482fdb826a..5533b8f2e252bf750dba873d24aeecf78b79facd 100644
(file)
--- 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;