Browse Source

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

Denis Vlasenko 15 years ago
parent
commit
3456bcaecd
1 changed files with 2 additions and 1 deletions
  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 */