Merge pull request #1949 from lewurm/fixtype
[mono.git] / mono / metadata / gc-stats.c
1 /*
2  * gc-stats.c: GC statistics.
3  *
4  * Copyright (C) 2015 Xamarin Inc
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Library General Public
8  * License 2.0 as published by the Free Software Foundation;
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13  * Library General Public License for more details.
14  *
15  * You should have received a copy of the GNU Library General Public
16  * License 2.0 along with this library; if not, write to the Free
17  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18  */
19
20 #include "mono/sgen/gc-internal-agnostic.h"
21
22 /*
23  * Due to a bug in the linker on Darwin we need to initialize this struct, or there will be
24  * "undefined symbol" errors.
25  */
26 #if defined(__APPLE__)
27 GCStats gc_stats = {};
28 #else
29 GCStats gc_stats;
30 #endif