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