GhcLibProfiled=$(if $(filter p,$(GhcLibWays)),YES,NO)
# Do we support shared libs?
-PlatformSupportsSharedLibs = $(if $(filter $(TARGETPLATFORM),i386-unknown-linux x86_64-unknown-linux i386-unknown-freebsd amd64-unknown-freebsd),YES,NO)
+PlatformSupportsSharedLibs = $(if $(filter $(TARGETPLATFORM),i386-unknown-linux x86_64-unknown-linux i386-unknown-freebsd amd64-unknown-freebsd i386-unknown-mingw32),YES,NO)
# ToDo later:
# BuildStaticLibs=@BuildStaticLibs@
import EnterCriticalSection;
import LeaveCriticalSection;
import ghczmprim_GHCziBool_False_closure;
+#if !defined(mingw32_HOST_OS)
import sm_mutex;
+#endif
/*-----------------------------------------------------------------------------
Array Primitives
#include "PosixSource.h"
#include "Rts.h"
#include "RtsAPI.h"
+#include "RtsDllMain.h"
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#if defined(__PIC__) && defined(mingw32_TARGET_OS)
BOOL
WINAPI
-DllMain ( HINSTANCE hInstance
+DllMain ( HINSTANCE hInstance STG_UNUSED
, DWORD reason
- , LPVOID reserved
+ , LPVOID reserved STG_UNUSED
)
{
/*
--- /dev/null
+
+#include "Rts.h"
+
+#ifdef HAVE_WINDOWS_H
+#include <windows.h>
+#endif
+
+/* I'd be mildly surprised if this wasn't defined, but still. */
+#if defined(__PIC__) && defined(mingw32_TARGET_OS)
+BOOL
+WINAPI
+DllMain ( HINSTANCE hInstance
+ , DWORD reason
+ , LPVOID reserved
+ );
+#endif
+