*/
#ifndef REGTEST
-#include <_PDCLIB_int.h>
+#include <threads.h>
-int _PDCLIB_errno = 0;
+/* Temporary */
-int * _PDCLIB_errno_func()
+static int _PDCLIB_errno = 0;
+
+int * _PDCLIB_errno()
{
return &_PDCLIB_errno;
}
-/* $Id$ */
-
/* 7.5 Errors <errno.h>
This file is part of the Public Domain C Library (PDCLib).
#include <_PDCLIB_int.h>
_PDCLIB_BEGIN_EXTERN_C
-#define errno (*_PDCLIB_errno_func())
+#define errno (*_PDCLIB_errno())
/* C99 */
#define ERANGE _PDCLIB_ERANGE
EXIT ;\r
}\r
\r
-PDCLIB_OPTIONS = notime dlmalloc mincoll ;\r
+PDCLIB_OPTIONS = notime dlmalloc mincoll tss_errno ;\r
\r
CRT0 = [ FDirName platform win32 crt0$(SUFOBJ) ] ;
\ No newline at end of file