]> pd.if.org Git - pdclib/blobdiff - functions/stdio/perror.c
PDCLIB-1 PDCLIB-2 PDCLIB-9 PDCLIB-12: Add thread specific locale support; migrate...
[pdclib] / functions / stdio / perror.c
index 5a794fbaa5a22611c30a60923b97333f4c5b0c1b..9fe694825a632fbaedab7e7d11915ac8aa157654 100644 (file)
@@ -10,7 +10,7 @@
 
 #ifndef REGTEST
 #include <errno.h>
-#include <locale.h>
+#include <_PDCLIB_locale.h>
 
 /* TODO: Doing this via a static array is not the way to do it. */
 void perror( const char * s )
@@ -25,7 +25,7 @@ void perror( const char * s )
     }
     else
     {
-        fprintf( stderr, "%s\n", _PDCLIB_lconv._PDCLIB_errno_texts[errno] );
+        fprintf( stderr, "%s\n", _PDCLIB_threadlocale()->_ErrnoStr[errno] );
     }
     return;
 }