-/* $Id$ */
-
/* perror( const char * )
This file is part of the Public Domain C Library (PDCLib).
#ifndef REGTEST
#include <errno.h>
-#include <locale.h>
+#include "_PDCLIB_locale.h"
/* TODO: Doing this via a static array is not the way to do it. */
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;
}
#endif
#ifdef TEST
-#include <_PDCLIB_test.h>
+#include "_PDCLIB_test.h"
#include <stdlib.h>
#include <string.h>
#include <limits.h>