X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=rts%2FRtsDllMain.c;h=250b63ea68e52889baa9dc9e129421734defddc6;hb=d5a9ee0e98a76bca1b41bbc5252e851c88b3ff4c;hp=af3c5090de9527d37dac7517ff818094d2b808f4;hpb=0065d5ab628975892cea1ec7303f968c3338cbe1;p=ghc-hetmet.git diff --git a/rts/RtsDllMain.c b/rts/RtsDllMain.c index af3c509..250b63e 100644 --- a/rts/RtsDllMain.c +++ b/rts/RtsDllMain.c @@ -15,8 +15,7 @@ #endif /* I'd be mildly surprised if this wasn't defined, but still. */ -#ifdef ENABLE_WIN32_DLL_SUPPORT - +#if defined(__PIC__) && defined(mingw32_TARGET_OS) BOOL WINAPI DllMain ( HINSTANCE hInstance @@ -36,4 +35,4 @@ DllMain ( HINSTANCE hInstance return TRUE; } -#endif /* ENABLE_WIN32_DLL_SUPPORT */ +#endif /* defined(__PIC__) && defined(mingw32_TARGET_OS) */