svn commit: r343113 - head/contrib/libc++/include

Kirk McKusick mckusick at FreeBSD.org
Thu Jan 17 15:35:12 UTC 2019


Author: mckusick
Date: Thu Jan 17 15:35:04 2019
New Revision: 343113
URL: https://svnweb.freebsd.org/changeset/base/343113

Log:
  Fix #if defined broken in -r343111
  
  Pointy-hat-to: mckusick

Modified:
  head/contrib/libc++/include/errno.h

Modified: head/contrib/libc++/include/errno.h
==============================================================================
--- head/contrib/libc++/include/errno.h	Thu Jan 17 14:09:55 2019	(r343112)
+++ head/contrib/libc++/include/errno.h	Thu Jan 17 15:35:04 2019	(r343113)
@@ -35,7 +35,7 @@ Macros:
 
 #if !defined(EOWNERDEAD) || !defined(ENOTRECOVERABLE) || !defined(EINTEGRITY)
 
-#ifdef ELAST
+#if defined(ELAST)
 
 static const int __elast1 = ELAST+1;
 static const int __elast2 = ELAST+2;
@@ -53,46 +53,46 @@ static const int __elast2 = 106;
 #define ENOTRECOVERABLE __elast1
 #define EOWNERDEAD __elast2
 #define EINTEGRITY __elast3
-#ifdef ELAST
+#if defined(ELAST)
 #undef ELAST
 #define ELAST EINTEGRITY
 
 #elif !defined(EOWNERDEAD) && !defined(ENOTRECOVERABLE) && defined(EINTEGRITY)
 #define ENOTRECOVERABLE __elast1
 #define EOWNERDEAD __elast2
-#ifdef ELAST
+#if defined(ELAST)
 #undef ELAST
 #define ELAST EOWNERDEAD
 
 #elif !defined(EOWNERDEAD) && defined(ENOTRECOVERABLE) && !defined(EINTEGRITY)
 #define EOWNERDEAD __elast1
 #define EINTEGRITY __elast2
-#ifdef ELAST
+#if defined(ELAST)
 #undef ELAST
 #define ELAST EINTEGRITY
 
 #elif !defined(EOWNERDEAD) && defined(ENOTRECOVERABLE) && defined(EINTEGRITY)
 #define EOWNERDEAD __elast1
-#ifdef ELAST
+#if defined(ELAST)
 #undef ELAST
 #define ELAST EOWNERDEAD
 
 #elif defined(EOWNERDEAD) && !defined(ENOTRECOVERABLE) && !defined(EINTEGRITY)
 #define ENOTRECOVERABLE __elast1
 #define EINTEGRITY __elast2
-#ifdef ELAST
+#if defined(ELAST)
 #undef ELAST
 #define ELAST EINTEGRITY
 
 #elif defined(EOWNERDEAD) && !defined(ENOTRECOVERABLE) && defined(EINTEGRITY)
 #define ENOTRECOVERABLE __elast1
-#ifdef ELAST
+#if defined(ELAST)
 #undef ELAST
 #define ELAST ENOTRECOVERABLE
 
 #elif defined(EOWNERDEAD) && defined(ENOTRECOVERABLE) && !defined(EINTEGRITY)
 #define EINTEGRITY __elast1
-#ifdef ELAST
+#if defined(ELAST)
 #undef ELAST
 #define ELAST EINTEGRITY
 


More information about the svn-src-head mailing list