From 26b021e57620bf72c65b97a8d1be976cf26c4b4d Mon Sep 17 00:00:00 2001 From: Matthew Flatt Date: Fri, 7 Dec 2012 07:58:40 -0600 Subject: [PATCH] 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 --- include/gc_config_macros.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.40.0