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