]> pd.if.org Git - pdclib.old/blobdiff - opt/tss_errno/errno.h
[dlmalloc] correct definition of MMAP
[pdclib.old] / opt / tss_errno / errno.h
index 27eacb7048bdefc957fd3cd59d5537fe2c24eb13..cda22a00328e8c2b5580ca36e907b2899ed88c8b 100644 (file)
@@ -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