OSDN Git Service

PR boehm-gc/48514
authorktietz <ktietz@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 10 Feb 2012 16:30:47 +0000 (16:30 +0000)
committerktietz <ktietz@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 10 Feb 2012 16:30:47 +0000 (16:30 +0000)
        * 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@184100 138bc75d-0d04-0410-961f-82ee72b054a4

boehm-gc/ChangeLog
boehm-gc/include/gc_config_macros.h

index 22ea666..e9d1eb5 100644 (file)
@@ -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.
index 0964784..12e91e2 100644 (file)
@@ -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