Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Mar 2012 11:47:38 +0000 (UTC)
From:      David Chisnall <theraven@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r233173 - head/lib/libc/locale
Message-ID:  <201203191147.q2JBlcSo067042@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201203191147.q2JBlcSo067042>