summaryrefslogtreecommitdiffstats
path: root/lib/libc/locale
diff options
context:
space:
mode:
authortheraven <theraven@FreeBSD.org>2012-03-19 11:47:37 +0000
committertheraven <theraven@FreeBSD.org>2012-03-19 11:47:37 +0000
commitf3af7bf15c147f127fc859b2bd4ecea90514e65a (patch)
tree95cb8cea31046d3058d45d8db2b8c8c81ee7dfab /lib/libc/locale
parent151deea148c8f17b6f8e9d0e163522812a441406 (diff)
downloadFreeBSD-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/locale')
-rw-r--r--lib/libc/locale/xlocale_private.h2
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) {
OpenPOWER on IntegriCloud