]> pd.if.org Git - pdclib/blobdiff - functions/string/strerror.c
PDCLIB-1 PDCLIB-2 PDCLIB-9 PDCLIB-12: Add thread specific locale support; migrate...
[pdclib] / functions / string / strerror.c
index b0ced5dba5d308ba904276973f32c53575004009..e050394b21778dcb12d7c221dc6b8e2383d0943c 100644 (file)
@@ -10,7 +10,7 @@
 
 #ifndef REGTEST
 
-#include <locale.h>
+#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];
     }
 }