From: ktietz Date: Fri, 10 Feb 2012 16:30:47 +0000 (+0000) Subject: PR boehm-gc/48514 * include/gc_config_macros.h (GC_DLL): Define it for mingw-targets... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6488760cc5b3829bd81d442f0e95cd248f9bcf4d;p=gc 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@184100 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/ChangeLog b/ChangeLog index 22ea666c..e9d1eb5a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2012-02-10 Kai Tietz + + 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 * configure: Regenerate. diff --git a/include/gc_config_macros.h b/include/gc_config_macros.h index 09647843..12e91e27 100644 --- a/include/gc_config_macros.h +++ b/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