diff options
author | Clemens Fruhwirth <clemens@endorphin.org> | 2007-08-08 06:50:43 +0000 |
---|---|---|
committer | Clemens Fruhwirth <clemens@endorphin.org> | 2007-08-08 06:50:43 +0000 |
commit | 006a18ea83799c0d4255071a2f8c08d3e9c7d84f (patch) | |
tree | bf73abdd6f0d50df5dc991a0d8c39d6c6a8a1be6 /includes | |
parent | 90ef8ab26efb2fc4172944f1066f122d3a6e7c7d (diff) | |
download | haskell-006a18ea83799c0d4255071a2f8c08d3e9c7d84f.tar.gz |
Build RTS as dynamic library
Diffstat (limited to 'includes')
-rw-r--r-- | includes/StgDLL.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/includes/StgDLL.h b/includes/StgDLL.h index ededcc96b5..5e824271bf 100644 --- a/includes/StgDLL.h +++ b/includes/StgDLL.h @@ -1,19 +1,19 @@ #ifndef __STGDLL_H__ #define __STGDLL_H__ 1 -#if defined(HAVE_WIN32_DLL_SUPPORT) && !defined(DONT_WANT_WIN32_DLL_SUPPORT) -#define ENABLE_WIN32_DLL_SUPPORT -#endif - -#ifdef ENABLE_WIN32_DLL_SUPPORT -# if __GNUC__ && !defined(__declspec) -# define DLLIMPORT -# else -# define DLLIMPORT __declspec(dllimport) -# define DLLIMPORT_DATA(x) _imp__##x -# endif +#if defined(__PIC__) && defined(mingw32_TARGET_OS) +# define DLL_IMPORT_DATA_REF(x) (_imp__##x) +# define DLL_IMPORT_DATA_VARNAME(x) *_imp__##x +# if __GNUC__ && !defined(__declspec) +# define DLLIMPORT +# else +# define DLLIMPORT __declspec(dllimport) +# define DLLIMPORT_DATA(x) _imp__##x +# endif #else -# define DLLIMPORT +# define DLL_IMPORT_DATA_REF(x) (&(x)) +# define DLL_IMPORT_DATA_VARNAME(x) x +# define DLLIMPORT #endif /* The view of the ghc/includes/ header files differ ever so @@ -32,7 +32,7 @@ #else #define DLL_IMPORT #define DLL_IMPORT_RTS DLLIMPORT -# ifdef ENABLE_WIN32_DLL_SUPPORT +# if defined(__PIC__) && defined(mingw32_TARGET_OS) # define DLL_IMPORT_DATA_VAR(x) _imp__##x # else # define DLL_IMPORT_DATA_VAR(x) x |