Index: include/errno.h =================================================================== --- include/errno.h +++ include/errno.h @@ -32,50 +32,6 @@ #ifdef __cplusplus -#if !defined(EOWNERDEAD) || !defined(ENOTRECOVERABLE) - -#ifdef ELAST - -static const int __elast1 = ELAST+1; -static const int __elast2 = ELAST+2; - -#else - -static const int __elast1 = 104; -static const int __elast2 = 105; - -#endif - -#ifdef ENOTRECOVERABLE - -#define EOWNERDEAD __elast1 - -#ifdef ELAST -#undef ELAST -#define ELAST EOWNERDEAD -#endif - -#elif defined(EOWNERDEAD) - -#define ENOTRECOVERABLE __elast1 -#ifdef ELAST -#undef ELAST -#define ELAST ENOTRECOVERABLE -#endif - -#else // defined(EOWNERDEAD) - -#define EOWNERDEAD __elast1 -#define ENOTRECOVERABLE __elast2 -#ifdef ELAST -#undef ELAST -#define ELAST ENOTRECOVERABLE -#endif - -#endif // defined(EOWNERDEAD) - -#endif // !defined(EOWNERDEAD) || !defined(ENOTRECOVERABLE) - // supply errno values likely to be missing, particularly on Windows #ifndef EAFNOSUPPORT @@ -392,6 +348,8 @@ #define EMLINK 9979 #endif -#endif // __cplusplus +#ifndef EINTEGRITY +#define EINTEGRITY 9980 +#endif #endif // _LIBCPP_ERRNO_H