Remove __NO_TLS.
All supported platforms support thread-local vars and __thread. Reviewed by: emaste Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D28796
This commit is contained in:
+2
-2
@@ -88,7 +88,7 @@ typedef struct {
|
||||
__BEGIN_DECLS
|
||||
extern const _RuneLocale _DefaultRuneLocale;
|
||||
extern const _RuneLocale *_CurrentRuneLocale;
|
||||
#if defined(__NO_TLS) || defined(__RUNETYPE_INTERNAL)
|
||||
#ifdef __RUNETYPE_INTERNAL
|
||||
extern const _RuneLocale *__getCurrentRuneLocale(void);
|
||||
#else
|
||||
extern _Thread_local const _RuneLocale *_ThreadRuneLocale;
|
||||
@@ -99,7 +99,7 @@ static __inline const _RuneLocale *__getCurrentRuneLocale(void)
|
||||
return _ThreadRuneLocale;
|
||||
return _CurrentRuneLocale;
|
||||
}
|
||||
#endif /* __NO_TLS || __RUNETYPE_INTERNAL */
|
||||
#endif /*__RUNETYPE_INTERNAL */
|
||||
#define _CurrentRuneLocale (__getCurrentRuneLocale())
|
||||
__END_DECLS
|
||||
|
||||
|
||||
Reference in New Issue
Block a user