summaryrefslogtreecommitdiff
path: root/support/verify.h
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2023-03-26 21:10:30 +0300
committerArnold D. Robbins <arnold@skeeve.com>2023-03-26 21:10:30 +0300
commit432c696182aa0bef176770903c7bdc2623d5e1e7 (patch)
treef783fd9b694dee6a58bdf638b4613c0e7f62d0c7 /support/verify.h
parent29e74d75768f25cd6b0592d21c029436a57b18e7 (diff)
parentc73b1c59e9b5da4874d95ca3484aa87891376ca3 (diff)
downloadgawk-432c696182aa0bef176770903c7bdc2623d5e1e7.tar.gz
Merge branch 'gawk-5.2-stable' into private/stable-int-max-fx
Diffstat (limited to 'support/verify.h')
-rw-r--r--support/verify.h18
1 files changed, 10 insertions, 8 deletions
diff --git a/support/verify.h b/support/verify.h
index f0b3fc58..c7002432 100644
--- a/support/verify.h
+++ b/support/verify.h
@@ -285,14 +285,16 @@ template <int w>
# define _GL_HAS_BUILTIN_TRAP 0
#endif
-#if defined __clang_major__ && __clang_major__ < 5
-# define _GL_HAS_BUILTIN_UNREACHABLE 0
-#elif 4 < __GNUC__ + (5 <= __GNUC_MINOR__)
-# define _GL_HAS_BUILTIN_UNREACHABLE 1
-#elif defined __has_builtin
-# define _GL_HAS_BUILTIN_UNREACHABLE __has_builtin (__builtin_unreachable)
-#else
-# define _GL_HAS_BUILTIN_UNREACHABLE 0
+#ifndef _GL_HAS_BUILTIN_UNREACHABLE
+# if defined __clang_major__ && __clang_major__ < 5
+# define _GL_HAS_BUILTIN_UNREACHABLE 0
+# elif 4 < __GNUC__ + (5 <= __GNUC_MINOR__)
+# define _GL_HAS_BUILTIN_UNREACHABLE 1
+# elif defined __has_builtin
+# define _GL_HAS_BUILTIN_UNREACHABLE __has_builtin (__builtin_unreachable)
+# else
+# define _GL_HAS_BUILTIN_UNREACHABLE 0
+# endif
#endif
/* Each of these macros verifies that its argument R is nonzero. To