#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...
*/
#define ENOTDIR _PDCLIB_ENOTDIR
#define EPROTOTYPE _PDCLIB_EPROTOTYPE
+#ifdef _PDCLIB_EIO
+#define EIO _PDCLIB_EIO
+#endif
+
_PDCLIB_END_EXTERN_C
#endif