File 0005-Do-not-define-GC_DLL-for-GNU-compiler.patch of Package mingw64-mono
From 62757421c7371aa02fdac776460dd7dd1c39ce45 Mon Sep 17 00:00:00 2001
From: Hib Eris <hib@hiberis.nl>
Date: Sun, 13 Jun 2010 14:16:44 +0200
Subject: [PATCH 05/10] Do not define GC_DLL for GNU compiler
This change is copied from upstream libgc. It is nescessary for
compiling with a mingw-w64 compiler.
---
libgc/include/gc_config_macros.h | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/libgc/include/gc_config_macros.h b/libgc/include/gc_config_macros.h
index c11caa7..c6a95be 100644
--- a/libgc/include/gc_config_macros.h
+++ b/libgc/include/gc_config_macros.h
@@ -126,7 +126,8 @@
typedef long ptrdiff_t; /* ptrdiff_t is not defined */
# endif
-#if defined(_DLL) && !defined(GC_NOT_DLL) && !defined(GC_DLL)
+#if defined(_DLL) && !defined(GC_NOT_DLL) && !defined(GC_DLL) \
+ && !defined(__GNUC__)
# define GC_DLL
#endif
--
1.7.1