summaryrefslogtreecommitdiff
path: root/rts/Interpreter.c
diff options
context:
space:
mode:
authorBen.Lippmeier@anu.edu.au <unknown>2009-11-18 04:39:01 +0000
committerBen.Lippmeier@anu.edu.au <unknown>2009-11-18 04:39:01 +0000
commit0e7562e8783042a9a8d3e4e0220d87b0946cb816 (patch)
treeef2654c9c5ba59f48e94fba695b9f161b81435ca /rts/Interpreter.c
parent158e71360bfad8b8ee037e0f6ab81a6e8ced2e03 (diff)
downloadhaskell-0e7562e8783042a9a8d3e4e0220d87b0946cb816.tar.gz
Windows DLLs: add #ifdefery to turn off DLL import of libffi when building statically.
Diffstat (limited to 'rts/Interpreter.c')
-rw-r--r--rts/Interpreter.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/rts/Interpreter.c b/rts/Interpreter.c
index ea2064fd04..339d4d8f88 100644
--- a/rts/Interpreter.c
+++ b/rts/Interpreter.c
@@ -27,6 +27,13 @@
#include <errno.h>
#endif
+// When building the RTS in the non-dyn way on Windows, we don't
+// want declspec(__dllimport__) on the front of function prototypes
+// from libffi.
+#if defined(mingw32_HOST_OS) && !defined(__PIC__)
+# define LIBFFI_NOT_DLL
+#endif
+
#include "ffi.h"
/* --------------------------------------------------------------------------