From: Matthew Flatt Date: Fri, 7 Dec 2012 13:58:40 +0000 (-0600) Subject: win32: support MinGW build X-Git-Tag: gc7_6_0~183 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=26b021e57620bf72c65b97a8d1be976cf26c4b4d;p=gc win32: support MinGW build (Apply commit 7f44cc9 from 'racket_gc' branch.) A MinGW build is the same shape as a MSVC build (but without MzCOM), unlike a Cygwin build. * include/gc_config_macros.h (GC_API): Define to declspec(dllexport) if GC_DLL and __MINGW32_DELAY_LOAD__ (even if no GC_BUILD). Conflicts: include/gc_config_macros.h --- diff --git a/include/gc_config_macros.h b/include/gc_config_macros.h index d6da7ca2..b5898cb4 100644 --- a/include/gc_config_macros.h +++ b/include/gc_config_macros.h @@ -172,7 +172,7 @@ #if defined(GC_DLL) && !defined(GC_API) # if defined(__MINGW32__) || defined(__CEGCC__) -# ifdef GC_BUILD +# if defined(GC_BUILD) || defined(__MINGW32_DELAY_LOAD__) # define GC_API __declspec(dllexport) # else # define GC_API __declspec(dllimport)