]> git.saurik.com Git - apple/libc.git/blobdiff - locale/xlocale_private.h
Libc-997.1.1.tar.gz
[apple/libc.git] / locale / xlocale_private.h
index 53c5c27f9559c7f1c24b14c7ea7fe493e85cdb55..b4335368fa682a4a41bde60bf09b3e4ab284f727 100644 (file)
@@ -47,8 +47,6 @@
 #undef MB_CUR_MAX_L
 #define MB_CUR_MAX_L(x)        ((x)->__lc_ctype->__mb_cur_max)
 
-extern int __is_threaded;
-
 typedef void (*__free_extra_t)(void *);
 
 #define XPERMANENT     ((__free_extra_t)-1)
@@ -163,6 +161,13 @@ struct _xlocale {
        struct lconv __lc_localeconv;
 };
 
+#define DEFAULT_CURRENT_LOCALE(x)      \
+                               if ((x) == NULL) { \
+                                       (x) = __current_locale(); \
+                               } else if ((x) == LC_GLOBAL_LOCALE) { \
+                                       (x) = &__global_locale; \
+                               }
+
 #define NORMALIZE_LOCALE(x)    if ((x) == NULL) { \
                                        (x) = _c_locale; \
                                } else if ((x) == LC_GLOBAL_LOCALE) { \