X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstdio%2Fperror.c;h=9fe694825a632fbaedab7e7d11915ac8aa157654;hb=HEAD;hp=5a794fbaa5a22611c30a60923b97333f4c5b0c1b;hpb=0e35e82c5e9a0804864839e8fc0e985b1ae41f07;p=pdclib.old diff --git a/functions/stdio/perror.c b/functions/stdio/perror.c index 5a794fb..9fe6948 100644 --- a/functions/stdio/perror.c +++ b/functions/stdio/perror.c @@ -10,7 +10,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 +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; }