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
This commit is contained in:
dim 2012-03-06 20:15:23 +00:00
parent 9906b913d9
commit b8d73c5617
2 changed files with 3 additions and 3 deletions
include

@ -90,7 +90,7 @@ extern const _RuneLocale *_CurrentRuneLocale;
extern const _RuneLocale *__getCurrentRuneLocale(void);
#else
extern _Thread_local const _RuneLocale *_ThreadRuneLocale;
static inline const _RuneLocale *__getCurrentRuneLocale(void)
static __inline const _RuneLocale *__getCurrentRuneLocale(void)
{
if (_ThreadRuneLocale)

@ -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