diff options
author | theraven <theraven@FreeBSD.org> | 2012-03-19 11:47:37 +0000 |
---|---|---|
committer | theraven <theraven@FreeBSD.org> | 2012-03-19 11:47:37 +0000 |
commit | f3af7bf15c147f127fc859b2bd4ecea90514e65a (patch) | |
tree | 95cb8cea31046d3058d45d8db2b8c8c81ee7dfab /lib/libc | |
parent | 151deea148c8f17b6f8e9d0e163522812a441406 (diff) | |
download | FreeBSD-src-f3af7bf15c147f127fc859b2bd4ecea90514e65a.zip FreeBSD-src-f3af7bf15c147f127fc859b2bd4ecea90514e65a.tar.gz |
Make __get_locale() static inline, not just inline, so when compiling libc in
debug mode (without optimisations) it doesn't generate a linker failure.
Approved by: dim (mentor)
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/locale/xlocale_private.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/locale/xlocale_private.h b/lib/libc/locale/xlocale_private.h index 8b4a26d..813f719 100644 --- a/lib/libc/locale/xlocale_private.h +++ b/lib/libc/locale/xlocale_private.h @@ -191,7 +191,7 @@ extern _Thread_local locale_t __thread_locale; * this call is not guaranteed to remain valid after the locale changes. As * such, this should only be called within libc functions. */ -inline locale_t __get_locale(void) +static inline locale_t __get_locale(void) { if (!__has_thread_locale) { |