1 /* -----------------------------------------------------------------------------
3 * (c) The GHC Team 1999-2000
5 * Entry point for RTS-in-a-DLL
7 * ---------------------------------------------------------------------------*/
9 #include "PosixSource.h"
12 #include "RtsDllMain.h"
18 /* I'd be mildly surprised if this wasn't defined, but still. */
19 #if defined(__PIC__) && defined(mingw32_TARGET_OS)
22 DllMain ( HINSTANCE hInstance STG_UNUSED
24 , LPVOID reserved STG_UNUSED
28 * Note: the DllMain() doesn't call startupHaskell() for you,
29 * that is the task of users of the RTS. The reason is
30 * that *you* want to be able to control the arguments
31 * you pass to the RTS.
35 // shutdownHaskelAndExit() is already being called,
36 // so I don't think we need this. BL 2009/11/17
38 //case DLL_PROCESS_DETACH: shutdownHaskell();
43 #endif /* defined(__PIC__) && defined(mingw32_TARGET_OS) */