projects
/
mono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d093879
)
[metadata] Fixed compilation of gc-stats.c under MSVC.
author
Joao Matos
<joao.matos@xamarin.com>
Mon, 25 May 2015 18:31:55 +0000
(19:31 +0100)
committer
Joao Matos
<joao.matos@xamarin.com>
Mon, 25 May 2015 18:39:59 +0000
(19:39 +0100)
mono/metadata/gc-stats.c
patch
|
blob
|
history
diff --git
a/mono/metadata/gc-stats.c
b/mono/metadata/gc-stats.c
index 20e7cae5831d5dc404c7516f55be8cc992fd07fb..4bcdfd55e0dce63229d6c0eadef5285cdf7962f2 100644
(file)
--- a/
mono/metadata/gc-stats.c
+++ b/
mono/metadata/gc-stats.c
@@
-23,4
+23,8
@@
* Due to a bug in the linker on Darwin we need to initialize this struct, or there will be
* "undefined symbol" errors.
*/
+#if defined(__APPLE__)
GCStats gc_stats = {};
+#else
+GCStats gc_stats;
+#endif
\ No newline at end of file