]> pd.if.org Git - pdclib.old/blobdiff - functions/locale/uselocale.c
Enable per-thread locale support to be compiled out
[pdclib.old] / functions / locale / uselocale.c
index 718def7f183fc76b7cd7ba05a259f6ebc21e7c9f..df5abdfbce4147d37420e22f24287c165c866371 100644 (file)
@@ -8,6 +8,7 @@
 #ifndef REGTEST
 #include <_PDCLIB_locale.h>
 
+#ifdef _PDCLIB_LOCALE_METHOD
 locale_t uselocale( locale_t newloc )
 {
     locale_t oldloc = _PDCLIB_threadlocale();
@@ -20,6 +21,7 @@ locale_t uselocale( locale_t newloc )
 
     return oldloc;
 }
+#endif
 
 #endif