X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=opt%2Ftss_errno%2Ferrno.h;h=cda22a00328e8c2b5580ca36e907b2899ed88c8b;hb=c66f50d5348b47287f498184a3c2033bfa8d0576;hp=37da36f01bb47f4669eb689fee039c684f18fcf9;hpb=92f939206a4edc57681503d2771eb925b80a33a9;p=pdclib.old diff --git a/opt/tss_errno/errno.h b/opt/tss_errno/errno.h index 37da36f..cda22a0 100644 --- a/opt/tss_errno/errno.h +++ b/opt/tss_errno/errno.h @@ -9,15 +9,15 @@ #include <_PDCLIB_int.h> _PDCLIB_BEGIN_EXTERN_C -extern int * _PDCLIB_errno( void ); -#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... */ @@ -93,6 +93,10 @@ extern int * _PDCLIB_errno( void ); #define ENOTDIR _PDCLIB_ENOTDIR #define EPROTOTYPE _PDCLIB_EPROTOTYPE +#ifdef _PDCLIB_EIO +#define EIO _PDCLIB_EIO +#endif + _PDCLIB_END_EXTERN_C #endif