1 /* -----------------------------------------------------------------------------
3 * (c) The GHC Team 1999-2000
5 * Entry point for RTS-in-a-DLL
7 * ---------------------------------------------------------------------------*/
9 #include "PosixSource.h"
17 /* I'd be mildly surprised if this wasn't defined, but still. */
18 #if defined(__PIC__) && defined(mingw32_TARGET_OS)
21 DllMain ( HINSTANCE hInstance
27 * Note: the DllMain() doesn't call startupHaskell() for you,
28 * that is the task of users of the RTS. The reason is
29 * that *you* want to be able to control the arguments
30 * you pass to the RTS.
33 case DLL_PROCESS_DETACH: shutdownHaskell();
38 #endif /* defined(__PIC__) && defined(mingw32_TARGET_OS) */