Re: Fixing "OS allocated a heap in high memory"
Malcolm Wallace <[email protected]> Sun, 23 Oct 2005 15:01:50 +0100
| Newsgroups | gmane.comp.lang.haskell.nhc.bugs |
|---|---|
| Organization | Dept of Computer Science, University of York |
| Message-ID | <[email protected]> |
[email protected] (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