mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-01 08:27:59 +00:00
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:
parent
9c170fd168
commit
b1e45245d1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=232620
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user