From ca125f0e2c5bc95f54306c75c1c3d85ce7f65963 Mon Sep 17 00:00:00 2001 From: ross Date: Thu, 5 Feb 2004 11:46:00 +0000 Subject: [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). --- include/HsUnix.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'include') 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); } -- cgit v1.2.3