X-Git-Url: https://pd.if.org/git/?p=pdclib.old;a=blobdiff_plain;f=functions%2Fctype%2Ftoupper.c;h=2972b51b754550c1b1cd8859df3bf152584671e8;hp=801c8ef55b18321cc5773b2d42bda2ff2561a2f2;hb=ed01ab8d9fcc47f6a4089ef72a73ef7a084d1ed3;hpb=fd89f130aedf49fbdb3e4f5a24c9cedb56eea22e diff --git a/functions/ctype/toupper.c b/functions/ctype/toupper.c index 801c8ef..2972b51 100644 --- a/functions/ctype/toupper.c +++ b/functions/ctype/toupper.c @@ -9,12 +9,11 @@ #include #ifndef REGTEST - -#include +#include <_PDCLIB_locale.h> int toupper( int c ) { - return _PDCLIB_lconv.ctype[c].upper; + return _PDCLIB_threadlocale()->_CType[c].upper; } #endif