1 /* -----------------------------------------------------------------------------
3 (c) The University of Glasgow, 1994-2004
5 Native-code generator header file - just useful macros for now.
7 -------------------------------------------------------------------------- */
12 #include "ghc_boot_platform.h"
16 -- - - - - - - - - - - - - - - - - - - - - -
18 # define IF_ARCH_alpha(x,y) x
20 # define IF_ARCH_alpha(x,y) y
22 -- - - - - - - - - - - - - - - - - - - - - -
24 # define IF_ARCH_i386(x,y) x
26 # define IF_ARCH_i386(x,y) y
28 -- - - - - - - - - - - - - - - - - - - - - -
30 # define IF_OS_freebsd(x,y) x
32 # define IF_OS_freebsd(x,y) y
34 -- - - - - - - - - - - - - - - - - - - - - -
36 # define IF_OS_netbsd(x,y) x
38 # define IF_OS_netbsd(x,y) y
40 -- - - - - - - - - - - - - - - - - - - - - -
42 # define IF_OS_openbsd(x,y) x
44 # define IF_OS_openbsd(x,y) y
46 -- - - - - - - - - - - - - - - - - - - - - -
48 # define IF_OS_linux(x,y) x
50 # define IF_OS_linux(x,y) y
52 -- - - - - - - - - - - - - - - - - - - - - -
53 #if linuxaout_TARGET_OS
54 # define IF_OS_linuxaout(x,y) x
56 # define IF_OS_linuxaout(x,y) y
58 -- - - - - - - - - - - - - - - - - - - - - -
60 # define IF_OS_bsdi(x,y) x
62 # define IF_OS_bsdi(x,y) y
64 -- - - - - - - - - - - - - - - - - - - - - -
65 #if cygwin32_TARGET_OS
66 # define IF_OS_cygwin32(x,y) x
68 # define IF_OS_cygwin32(x,y) y
70 -- - - - - - - - - - - - - - - - - - - - - -
72 # define IF_ARCH_sparc(x,y) x
74 # define IF_ARCH_sparc(x,y) y
76 -- - - - - - - - - - - - - - - - - - - - - -
78 # define IF_OS_sunos4(x,y) x
80 # define IF_OS_sunos4(x,y) y
82 -- - - - - - - - - - - - - - - - - - - - - -
83 -- NB: this will catch i386-*-solaris2, too
84 #if solaris2_TARGET_OS
85 # define IF_OS_solaris2(x,y) x
87 # define IF_OS_solaris2(x,y) y
89 -- - - - - - - - - - - - - - - - - - - - - -
90 #if powerpc_TARGET_ARCH
91 # define IF_ARCH_powerpc(x,y) x
93 # define IF_ARCH_powerpc(x,y) y
95 -- - - - - - - - - - - - - - - - - - - - - -
97 # define IF_OS_darwin(x,y) x
99 # define IF_OS_darwin(x,y) y
101 ---------------------------------------------