[nhc-bugs] Fixing "OS allocated a heap in high memory"
Malcolm Wallace
Malcolm.Wallace at cs.york.ac.uk
Sun Oct 23 10:01:50 EDT 2005
dons at 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
More information about the Nhc-bugs
mailing list