]> pd.if.org Git - pdclib/blobdiff - functions/ctype/tolower.c
PDCLIB-1 PDCLIB-2 PDCLIB-9 PDCLIB-12: Add thread specific locale support; migrate...
[pdclib] / functions / ctype / tolower.c
index d051ba5c67e7ce257c3409f58ede8785b1d77644..a77001ef8e687fdbbddd10209e8d9fc94f9b1690 100644 (file)
@@ -9,12 +9,11 @@
 #include <ctype.h>
 
 #ifndef REGTEST
-
-#include <locale.h>
+#include <_PDCLIB_locale.h>
 
 int tolower( int c )
 {
-    return _PDCLIB_lconv.ctype[c].lower;
+    return _PDCLIB_threadlocale()->_CType[c].lower;
 }
 
 #endif