X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=opt%2Ftss_errno%2Ferrno.h;h=cda22a00328e8c2b5580ca36e907b2899ed88c8b;hb=ad695562522feac5197c19716dd91922f229cf32;hp=27eacb7048bdefc957fd3cd59d5537fe2c24eb13;hpb=8c3db524fec3b6bb85d2a2cc5cd889a63405e5f1;p=pdclib.old diff --git a/opt/tss_errno/errno.h b/opt/tss_errno/errno.h index 27eacb7..cda22a0 100644 --- a/opt/tss_errno/errno.h +++ b/opt/tss_errno/errno.h @@ -9,14 +9,15 @@ #include <_PDCLIB_int.h> _PDCLIB_BEGIN_EXTERN_C -#define errno (*_PDCLIB_errno()) +extern int * _PDCLIB_errno_func( void ); +#define errno (*_PDCLIB_errno_func()) /* C99 */ #define ERANGE _PDCLIB_ERANGE #define EDOM _PDCLIB_EDOM #define EILSEQ _PDCLIB_EILSEQ -/* C++11. Yes, they did just copy the POSIX errno list into the standard +/* C++11. Yes, they did just copy the POSIX errno list into the standard * * ...take a DEEP breath... */ @@ -92,6 +93,10 @@ _PDCLIB_BEGIN_EXTERN_C #define ENOTDIR _PDCLIB_ENOTDIR #define EPROTOTYPE _PDCLIB_EPROTOTYPE +#ifdef _PDCLIB_EIO +#define EIO _PDCLIB_EIO +#endif + _PDCLIB_END_EXTERN_C #endif