summaryrefslogtreecommitdiff
path: root/perl.h
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2020-10-15 21:25:32 -0600
committerKarl Williamson <khw@cpan.org>2020-10-15 21:40:52 -0600
commitbd464609a141701e70f805b71870449e5f2a5e48 (patch)
tree13eb55d3138c0ef56672b4bf5f191c41513a4d1a /perl.h
parent9eabb0a9870f4fdc3d5ebb09438277a8ba0ff0cb (diff)
downloadperl-bd464609a141701e70f805b71870449e5f2a5e48.tar.gz
Fix __builtin_unreachable
Tomasz Konojacki pointed out on #irc that the formulation in 5d5b9c460e2a06563d2b5e35a1a79991460696eb was wrong, and the correction here is the right way of doing it.
Diffstat (limited to 'perl.h')
-rw-r--r--perl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl.h b/perl.h
index 4e252d4e23..fc39d4819b 100644
--- a/perl.h
+++ b/perl.h
@@ -3817,7 +3817,7 @@ intrinsic function, see its documents for more details.
#ifdef DEBUGGING
# define ASSUME(x) assert(x)
-# ifdef __builtin_unreachable
+# if __has_builtin(__builtin_unreachable)
# define HAS_BUILTIN_UNREACHABLE_
# elif (defined(__GNUC__) && ( __GNUC__ > 4 \
|| __GNUC__ == 4 && __GNUC_MINOR__ >= 5))