X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=opt%2Ftss_errno%2Ferrno.h;h=cda22a00328e8c2b5580ca36e907b2899ed88c8b;hb=b7a3e4143b3b837d8309624ec120d53cbd409058;hp=27eacb7048bdefc957fd3cd59d5537fe2c24eb13;hpb=cce3efd57a644a1fa1ee8fcb14b6b934d40c10d2;p=pdclib 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