
23 Oct
2005
23 Oct
'05
2:01 p.m.
dons@cse.unsw.edu.au (Donald Bruce Stewart) writes:
Does nhc have some equivalent of the #if defined(solaris2_HOST_OS) || defined(irix_HOST_OS) macros?
Bearing in mind Sven's good advice to use feature tests in preference to OS tests where possible, you can test any of the symbols ordinarily defined by your C compiler. See include/HsFFI.h and include/newmacros.h for examples. #if defined(__sparc__) || defined (__sgi) || etc Regards, Malcolm