]> pd.if.org Git - pdclib/blobdiff - functions/stdio/perror.c
Removed SVN keyword tags.
[pdclib] / functions / stdio / perror.c
index 23ce68bd356cc11e997dcdabf4873b32156b2204..5df86c019b41c275ccdf61ce0fa60d8686c902d9 100644 (file)
@@ -1,5 +1,3 @@
-/* $Id$ */
-
 /* perror( const char * )
 
    This file is part of the Public Domain C Library (PDCLib).
@@ -9,9 +7,8 @@
 #include <stdio.h>
 
 #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 )
@@ -26,7 +23,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;
 }