svn commit: r233173 - head/lib/libc/locale
David Chisnall
theraven at FreeBSD.org
Mon Mar 19 11:47:38 UTC 2012
Author: theraven
Date: Mon Mar 19 11:47:37 2012
New Revision: 233173
URL: http://svn.freebsd.org/changeset/base/233173
Log:
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)
Modified:
head/lib/libc/locale/xlocale_private.h
Modified: head/lib/libc/locale/xlocale_private.h
==============================================================================
--- head/lib/libc/locale/xlocale_private.h Mon Mar 19 11:32:42 2012 (r233172)
+++ head/lib/libc/locale/xlocale_private.h Mon Mar 19 11:47:37 2012 (r233173)
@@ -191,7 +191,7 @@ extern _Thread_local locale_t __thread_l
* 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) {
More information about the svn-src-all
mailing list