]> 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 00cb203500b5b362a241cff15ece78a4834886cf..2972b51b754550c1b1cd8859df3bf152584671e8 100644 (file)
@@ -9,10 +9,11 @@
 #include <ctype.h>
 
 #ifndef REGTEST
+#include <_PDCLIB_locale.h>
 
 int toupper( int c )
 {
-    return _PDCLIB_locale_info.ctype[c].upper;
+    return _PDCLIB_threadlocale()->_CType[c].upper;
 }
 
 #endif