aboutsummaryrefslogtreecommitdiff
path: root/include/runetype.h
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2021-02-19 15:20:29 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2021-02-23 18:08:10 +0000
commit3ae8d83d04a7a6ec11b64c89ee60c180b0bde30e (patch)
tree1a15235e0cb2ab23ca1bf4a44ad9b994a4fee8b1 /include/runetype.h
parentf695e960672ddc45744aca085c1e22c80928f447 (diff)
downloadsrc-3ae8d83d04a7a6ec11b64c89ee60c180b0bde30e.tar.gz
src-3ae8d83d04a7a6ec11b64c89ee60c180b0bde30e.zip
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
Diffstat (limited to 'include/runetype.h')
-rw-r--r--include/runetype.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/runetype.h b/include/runetype.h
index 4aca128f8c8a..93007809dbf8 100644
--- a/include/runetype.h
+++ b/include/runetype.h
@@ -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