diff options
author | ross <unknown> | 2004-02-05 11:46:00 +0000 |
---|---|---|
committer | ross <unknown> | 2004-02-05 11:46:00 +0000 |
commit | ca125f0e2c5bc95f54306c75c1c3d85ce7f65963 (patch) | |
tree | be9009614fed9f46cbed2c560662c547ad281fcc /include | |
parent | 5f6ddbccddbc1fff174bcabd29398e9a5d8ec2c0 (diff) |
[project @ 2004-02-05 11:46:00 by ross]
Hugs only: use the configure-set variable INLINE_ONLY instead of
`extern inline' (which works for gcc but not C99 compilers).
Diffstat (limited to 'include')
-rw-r--r-- | include/HsUnix.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/HsUnix.h b/include/HsUnix.h index 3c6ab6c..1923769 100644 --- a/include/HsUnix.h +++ b/include/HsUnix.h @@ -1,5 +1,5 @@ /* ----------------------------------------------------------------------------- - * $Id: HsUnix.h,v 1.12 2003/12/15 16:57:30 ross Exp $ + * $Id: HsUnix.h,v 1.13 2004/02/05 11:46:00 ross Exp $ * * (c) The University of Glasgow 2002 * @@ -75,8 +75,12 @@ extern void pPrPr_disableITimers (void); extern char **environ; #ifndef INLINE +#ifdef __HUGS__ +#define INLINE INLINE_ONLY +#else #define INLINE extern inline #endif +#endif INLINE int __hsunix_wifexited (int stat) { return WIFEXITED(stat); } INLINE int __hsunix_wexitstatus (int stat) { return WEXITSTATUS(stat); } |