diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2012-03-06 20:15:23 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2012-03-06 20:15:23 +0000 |
commit | b1e45245d102463578a0219cd7cc24c6bf4e4fde (patch) | |
tree | a81617b9ac3d53e27933e55119708bd24d768851 /include/xlocale | |
parent | 9c170fd1689fa8dcc514acb46840699eff751c67 (diff) | |
download | src-test2-b1e45245d102463578a0219cd7cc24c6bf4e4fde.tar.gz src-test2-b1e45245d102463578a0219cd7cc24c6bf4e4fde.zip |
After r232498, programs built with -ansi or -std=c89 including <ctype.h>
would not compile anymore, due to plain 'inline' keywords. Fix this by
using __inline instead.
Reported by: Jia-Shiun Li <jiashiun@gmail.com>
Discussed with: theraven
Notes
Notes:
svn path=/head/; revision=232620
Diffstat (limited to 'include/xlocale')
-rw-r--r-- | include/xlocale/_ctype.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/xlocale/_ctype.h b/include/xlocale/_ctype.h index d0e5a473d40b..31359b772e3d 100644 --- a/include/xlocale/_ctype.h +++ b/include/xlocale/_ctype.h @@ -55,11 +55,11 @@ _RuneLocale *__runes_for_locale(locale_t, int*); #ifndef _XLOCALE_INLINE #if __GNUC__ && !__GNUC_STDC_INLINE__ /* GNU89 inline has nonstandard semantics. */ -#define _XLOCALE_INLINE extern inline +#define _XLOCALE_INLINE extern __inline #else /* Hack to work around people who define inline away */ #ifdef inline -#define _XLOCALE_INLINE __inline static +#define _XLOCALE_INLINE static __inline #else /* Define with C++ / C99 compatible semantics */ #define _XLOCALE_INLINE inline |