]> pd.if.org Git - pdclib/blobdiff - functions/ctype/toupper.c
PDCLib includes with quotes, not <>.
[pdclib] / functions / ctype / toupper.c
index 00cb203500b5b362a241cff15ece78a4834886cf..16b981abf4e027d83619ba7fbc5d34c6dabaf696 100644 (file)
@@ -1,5 +1,3 @@
-/* $Id$ */
-
 /* toupper( int )
 
    This file is part of the Public Domain C Library (PDCLib).
@@ -9,16 +7,17 @@
 #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
 
 #ifdef TEST
-#include <_PDCLIB_test.h>
+#include "_PDCLIB_test.h"
 
 int main( void )
 {