X-Git-Url: https://pd.if.org/git/?p=pdclib.old;a=blobdiff_plain;f=functions%2Fstring%2Fstrerror.c;h=e050394b21778dcb12d7c221dc6b8e2383d0943c;hp=b0ced5dba5d308ba904276973f32c53575004009;hb=ed01ab8d9fcc47f6a4089ef72a73ef7a084d1ed3;hpb=fd89f130aedf49fbdb3e4f5a24c9cedb56eea22e diff --git a/functions/string/strerror.c b/functions/string/strerror.c index b0ced5d..e050394 100644 --- a/functions/string/strerror.c +++ b/functions/string/strerror.c @@ -10,7 +10,7 @@ #ifndef REGTEST -#include +#include <_PDCLIB_locale.h> /* TODO: Doing this via a static array is not the way to do it. */ char * strerror( int errnum ) @@ -21,7 +21,7 @@ char * strerror( int errnum ) } else { - return _PDCLIB_lconv._PDCLIB_errno_texts[errnum]; + return _PDCLIB_threadlocale()->_ErrnoStr[errnum]; } }