[metadata] Fixed compilation of gc-stats.c under MSVC.
authorJoao Matos <joao.matos@xamarin.com>
Mon, 25 May 2015 18:31:55 +0000 (19:31 +0100)
committerJoao Matos <joao.matos@xamarin.com>
Mon, 25 May 2015 18:39:59 +0000 (19:39 +0100)
mono/metadata/gc-stats.c

index 20e7cae5831d5dc404c7516f55be8cc992fd07fb..4bcdfd55e0dce63229d6c0eadef5285cdf7962f2 100644 (file)
@@ -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