]> granicus.if.org Git - gc/commitdiff
win32: support MinGW build
authorMatthew Flatt <mflatt@racket-lang.org>
Fri, 7 Dec 2012 13:58:40 +0000 (07:58 -0600)
committerIvan Maidanski <ivmai@mail.ru>
Sun, 3 Nov 2013 10:25:54 +0000 (14:25 +0400)
A MinGW build is the same shape as a MSVC build (but without
MzCOM), unlike a Cygwin build.

include/gc_config_macros.h

index d2476b28bd00792f6ab760c620cdcea7ba7d7887..9c76e47204dad60545b55587226814b530228e3f 100644 (file)
 #endif
 
 #if defined(__MINGW32__) && defined(GC_DLL)
-# ifdef GC_BUILD
+# if defined(GC_BUILD) || defined(__MINGW32_DELAY_LOAD__)
 #   define GC_API __declspec(dllexport)
 # else
 #   define GC_API __declspec(dllimport)