[runtime] Fixed a warning.
authorJoão Matos <joao@tritao.eu>
Mon, 30 Mar 2015 16:21:43 +0000 (17:21 +0100)
committerJoão Matos <joao@tritao.eu>
Mon, 30 Mar 2015 16:22:16 +0000 (17:22 +0100)
It can happen that THREAD_INFO_TYPE is already defined by a previously included header to just undefine it before re-redefining it.

mono/metadata/sgen-gc.h

index a97cef02a7d15326a5b28130a100a65e00b7ab5d..f9c09677b86015038ac5b0bc63dd6cc3dc54a712 100644 (file)
@@ -28,6 +28,7 @@
 #ifdef HAVE_SGEN_GC
 
 typedef struct _SgenThreadInfo SgenThreadInfo;
+#undef THREAD_INFO_TYPE
 #define THREAD_INFO_TYPE SgenThreadInfo
 
 #include <glib.h>