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)
This commit is contained in:
David Chisnall 2012-03-19 11:47:37 +00:00
parent fc6e32fb62
commit 5a674eeb8f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=233173

View File

@ -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) {