aboutsummaryrefslogtreecommitdiff
path: root/boehm-gc
diff options
context:
space:
mode:
authorKai Tietz <ktietz@redhat.com>2012-02-10 17:30:47 +0100
committerKai Tietz <ktietz@gcc.gnu.org>2012-02-10 17:30:47 +0100
commit19f326e8ec1917f33e54e165e036f2c6ff091ce8 (patch)
treed52fbfb9f2b56772c08560f036ffa4aa8eed220d /boehm-gc
parentd3229873aea34e4768d45cfa6a5ef50323fdf3fe (diff)
re PR boehm-gc/48514 ([4.6] boehm gc incorrectly compile using __declspec(dllexport) on i686-w64-mingw32 target)
PR boehm-gc/48514 * include/gc_config_macros.h (GC_DLL): Define it for mingw-targets only, if we are actual in boehm-gc's build and DLL_EXPORT is defined. From-SVN: r184100
Diffstat (limited to 'boehm-gc')
-rw-r--r--boehm-gc/ChangeLog7
-rw-r--r--boehm-gc/include/gc_config_macros.h4
2 files changed, 10 insertions, 1 deletions
diff --git a/boehm-gc/ChangeLog b/boehm-gc/ChangeLog
index 22ea666ce5e..e9d1eb5a6e8 100644
--- a/boehm-gc/ChangeLog
+++ b/boehm-gc/ChangeLog
@@ -1,3 +1,10 @@
+2012-02-10 Kai Tietz <ktietz@redhat.com>
+
+ PR boehm-gc/48514
+ * include/gc_config_macros.h (GC_DLL): Define it for mingw-targets
+ only, if we are actual in boehm-gc's build and DLL_EXPORT
+ is defined.
+
2011-11-21 Andreas Tobler <andreast@fgznet.ch>
* configure: Regenerate.
diff --git a/boehm-gc/include/gc_config_macros.h b/boehm-gc/include/gc_config_macros.h
index 0964784332b..12e91e27f5e 100644
--- a/boehm-gc/include/gc_config_macros.h
+++ b/boehm-gc/include/gc_config_macros.h
@@ -81,7 +81,9 @@
typedef long ptrdiff_t; /* ptrdiff_t is not defined */
# endif
-#if defined(_DLL) && !defined(GC_NOT_DLL) && !defined(GC_DLL)
+#if ((defined(_DLL) && !defined (__MINGW32__)) \
+ || (defined (DLL_EXPORT) && defined (GC_BUILD))) \
+ && !defined(GC_DLL)
# define GC_DLL
#endif