X-Git-Url: https://pd.if.org/git/?p=pdclib.old;a=blobdiff_plain;f=functions%2Fstdio%2Fperror.c;h=9fe694825a632fbaedab7e7d11915ac8aa157654;hp=5a794fbaa5a22611c30a60923b97333f4c5b0c1b;hb=ed01ab8d9fcc47f6a4089ef72a73ef7a084d1ed3;hpb=fd89f130aedf49fbdb3e4f5a24c9cedb56eea22e 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; }