X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstdio%2Fperror.c;h=97b727f253632fa08ddbfc3dda68f0e2dfd2456c;hb=8894c921674bb116d0a7b8f23a55311e7a768019;hp=5a794fbaa5a22611c30a60923b97333f4c5b0c1b;hpb=0a419d48138f1411d6e3e50a367b9ece5a2cf893;p=pdclib diff --git a/functions/stdio/perror.c b/functions/stdio/perror.c index 5a794fb..97b727f 100644 --- a/functions/stdio/perror.c +++ b/functions/stdio/perror.c @@ -1,5 +1,3 @@ -/* $Id$ */ - /* perror( const char * ) This file is part of the Public Domain C Library (PDCLib). @@ -10,7 +8,7 @@ #ifndef REGTEST #include -#include +#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 +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; } @@ -33,7 +31,7 @@ void perror( const char * s ) #endif #ifdef TEST -#include <_PDCLIB_test.h> +#include "_PDCLIB_test.h" #include #include #include