X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstdio%2Fperror.c;h=9fe694825a632fbaedab7e7d11915ac8aa157654;hb=3309ec3ad8a5db735eaa2de7f5dc6a331d8e7319;hp=23ce68bd356cc11e997dcdabf4873b32156b2204;hpb=8cfc7f73e7baec32630b9cf55582febd41b8a684;p=pdclib.old diff --git a/functions/stdio/perror.c b/functions/stdio/perror.c index 23ce68b..9fe6948 100644 --- a/functions/stdio/perror.c +++ b/functions/stdio/perror.c @@ -9,9 +9,8 @@ #include #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 ) @@ -26,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; }