diff options
author | Ben.Lippmeier@anu.edu.au <unknown> | 2009-11-18 04:39:01 +0000 |
---|---|---|
committer | Ben.Lippmeier@anu.edu.au <unknown> | 2009-11-18 04:39:01 +0000 |
commit | 0e7562e8783042a9a8d3e4e0220d87b0946cb816 (patch) | |
tree | ef2654c9c5ba59f48e94fba695b9f161b81435ca /rts/Interpreter.c | |
parent | 158e71360bfad8b8ee037e0f6ab81a6e8ced2e03 (diff) | |
download | haskell-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.c | 7 |
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" /* -------------------------------------------------------------------------- |