From 92f939206a4edc57681503d2771eb925b80a33a9 Mon Sep 17 00:00:00 2001 From: Owen Shepherd Date: Mon, 7 Jan 2013 15:08:50 +0000 Subject: [PATCH] errno: parts of old errno system were left in _PDCLIB_int.h --- internals/_PDCLIB_int.h | 16 ---------------- opt/tss_errno/errno.h | 1 + 2 files changed, 1 insertion(+), 16 deletions(-) diff --git a/internals/_PDCLIB_int.h b/internals/_PDCLIB_int.h index 9ff9e69..0c48f33 100644 --- a/internals/_PDCLIB_int.h +++ b/internals/_PDCLIB_int.h @@ -309,22 +309,6 @@ _PDCLIB_uintmax_t _PDCLIB_strtox_main( const char ** p, unsigned int base, _PDCL extern char _PDCLIB_digits[]; extern char _PDCLIB_Xdigits[]; -/* -------------------------------------------------------------------------- */ -/* errno */ -/* -------------------------------------------------------------------------- */ - -/* If PDCLib would call its error number "errno" directly, there would be no way - to catch its value from underlying system calls that also use it (i.e., POSIX - operating systems). That is why we use an internal name, providing a means to - access it through . -*/ -extern int _PDCLIB_errno; - -/* A mechanism for delayed evaluation. (Not sure if this is really necessary, so - no detailed documentation on the "why".) -*/ -int * _PDCLIB_errno_func( void ) _PDCLIB_nothrow; - /* -------------------------------------------------------------------------- */ /* locale / wchar / uchar */ /* -------------------------------------------------------------------------- */ diff --git a/opt/tss_errno/errno.h b/opt/tss_errno/errno.h index 27eacb7..37da36f 100644 --- a/opt/tss_errno/errno.h +++ b/opt/tss_errno/errno.h @@ -9,6 +9,7 @@ #include <_PDCLIB_int.h> _PDCLIB_BEGIN_EXTERN_C +extern int * _PDCLIB_errno( void ); #define errno (*_PDCLIB_errno()) /* C99 */ -- 2.40.0