Commit 75fea0db authored by Ian Lynagh's avatar Ian Lynagh
Browse files

Change some TARGET checks to HOST checks

parent 1c59af0b
......@@ -169,7 +169,7 @@ rts_getSchedStatus (Capability *cap);
// Note that RtsAPI.h is also included by foreign export stubs in
// the base package itself.
//
#if defined(mingw32_TARGET_OS) && defined(__PIC__) && !defined(COMPILING_BASE_PACKAGE)
#if defined(mingw32_HOST_OS) && defined(__PIC__) && !defined(COMPILING_BASE_PACKAGE)
__declspec(dllimport) extern StgWord base_GHCziTopHandler_runIO_closure[];
__declspec(dllimport) extern StgWord base_GHCziTopHandler_runNonIO_closure[];
#else
......
......@@ -14,7 +14,7 @@
#ifndef __STGDLL_H__
#define __STGDLL_H__ 1
#if defined(__PIC__) && defined(mingw32_TARGET_OS)
#if defined(__PIC__) && defined(mingw32_HOST_OS)
# define DLL_IMPORT_DATA_REF(x) (_imp__##x)
# define DLL_IMPORT_DATA_VARNAME(x) *_imp__##x
# if __GNUC__ && !defined(__declspec)
......@@ -45,7 +45,7 @@
#else
#define DLL_IMPORT
#define DLL_IMPORT_RTS DLLIMPORT
# if defined(__PIC__) && defined(mingw32_TARGET_OS)
# if defined(__PIC__) && defined(mingw32_HOST_OS)
# define DLL_IMPORT_DATA_VAR(x) _imp__##x
# else
# define DLL_IMPORT_DATA_VAR(x) x
......
......@@ -182,7 +182,7 @@ but uses $$dyncall if necessary to cope, just in case you aren't.
-------------------------------------------------------------------------- */
#ifdef hppa1_1_hp_hpux_TARGET
#ifdef hppa1_1_hp_hpux_HOST
#define JMP_(cont) \
do { void *_procedure = (void *)(cont); \
......@@ -191,7 +191,7 @@ but uses $$dyncall if necessary to cope, just in case you aren't.
goto *_procedure; \
} while(0)
#endif /* hppa1_1_hp_hpux_TARGET */
#endif /* hppa1_1_hp_hpux_HOST */
/* -----------------------------------------------------------------------------
Tail calling on PowerPC
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment