From 2497f65fee7c132d1ddb1997dbfa07678c07c4f0 Mon Sep 17 00:00:00 2001 From: Colin Cross Date: Wed, 13 Jan 2010 14:38:20 -0800 Subject: [PATCH] Import change from ctype.h revision 1.20 from openbsd Fixes builds with gcc >= 4.3 with -std=gnu99 Change-Id: I8729b7f4237fd7a99a82b2fe60573a7afe66b435 --- libc/include/ctype.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libc/include/ctype.h b/libc/include/ctype.h index b5f9ff4f8..58b76eae6 100644 --- a/libc/include/ctype.h +++ b/libc/include/ctype.h @@ -59,7 +59,11 @@ extern const short *_toupper_tab_; /* extern __inline is a GNU C extension */ #ifdef __GNUC__ +# if defined(__GNUC_STDC_INLINE__) +#define __CTYPE_INLINE extern __inline __attribute__((__gnu_inline__)) +# else #define __CTYPE_INLINE extern __inline +# endif #else #define __CTYPE_INLINE static __inline #endif