summaryrefslogtreecommitdiffstats
path: root/libc
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2010-01-13 14:38:20 -0800
committerColin Cross <ccross@android.com>2010-01-15 15:57:02 -0800
commit2497f65fee7c132d1ddb1997dbfa07678c07c4f0 (patch)
treedcd1174ab2bfb61858b0f5fe7c18aedb4c6e401c /libc
parentd1cfc947f9b2f431cf416185ffdffb7e76303414 (diff)
downloadbionic-2497f65fee7c132d1ddb1997dbfa07678c07c4f0.zip
bionic-2497f65fee7c132d1ddb1997dbfa07678c07c4f0.tar.gz
bionic-2497f65fee7c132d1ddb1997dbfa07678c07c4f0.tar.bz2
Import change from ctype.h revision 1.20 from openbsd
Fixes builds with gcc >= 4.3 with -std=gnu99 Change-Id: I8729b7f4237fd7a99a82b2fe60573a7afe66b435
Diffstat (limited to 'libc')
-rw-r--r--libc/include/ctype.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libc/include/ctype.h b/libc/include/ctype.h
index b5f9ff4..58b76ea 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