浏览代码

__global_locale must be visible to users, move it outside of #ifdef _LIBC

Denis Vlasenko 15 年之前
父节点
当前提交
3456bcaecd
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      libc/sysdeps/linux/common/bits/uClibc_locale.h

+ 2 - 1
libc/sysdeps/linux/common/bits/uClibc_locale.h

@@ -314,10 +314,11 @@ typedef struct __uclibc_locale_struct {
 } __uclibc_locale_t;
 
 extern __uclibc_locale_t __global_locale_data;
-extern struct __uclibc_locale_struct * __global_locale;
 #endif /* !__UCLIBC_GEN_LOCALE */
 #endif /* _LIBC */
 
+extern struct __uclibc_locale_struct * __global_locale;
+
 typedef struct __uclibc_locale_struct *__locale_t;
 
 /* if we need to leave only _LIBC, then attribute_hidden is not usable */