(Apply part of commit
6488760 from 'gcc_boehmgc' branch.)
* include/gc_config_macros.h (GC_DLL): Define if we are actually in GC
build and DLL_EXPORT is defined (unless prohibited by GC_NOT_DLL)
preventing GC internal symbols exporting on Cygwin and MinGW.
# endif
#endif /* _WIN32_WCE */
-#if defined(_DLL) && !defined(GC_NOT_DLL) && !defined(GC_DLL) \
- && !defined(__GNUC__)
+#if !defined(GC_NOT_DLL) && !defined(GC_DLL) \
+ && ((defined(_DLL) && !defined(__GNUC__)) \
+ || (defined(DLL_EXPORT) && defined(GC_BUILD)))
# define GC_DLL
#endif