[vlc-commits] [Git][videolan/vlc][3.0.x] vlc_common: don't redefine `unreachable` when using C23
Steve Lhomme (@robUx4)
gitlab at videolan.org
Wed Oct 1 08:07:13 UTC 2025
Steve Lhomme pushed to branch 3.0.x at VideoLAN / VLC
Commits:
c9dde25a by Gabriel Lafond-Thenaille at 2025-09-30T09:01:05+02:00
vlc_common: don't redefine `unreachable` when using C23
Fixes #29390
(cherry picked from commit d56f1e196b570a2e2893c31a0d593bab2b31b349)
Signed-off-by: Thomas Guillem <thomas at gllm.fr>
- - - - -
1 changed file:
- include/vlc_common.h
Changes:
=====================================
include/vlc_common.h
=====================================
@@ -112,7 +112,9 @@
#ifdef __GNUC__
# define likely(p) __builtin_expect(!!(p), 1)
# define unlikely(p) __builtin_expect(!!(p), 0)
-# define unreachable() __builtin_unreachable()
+# if !defined(unreachable)
+# define unreachable() __builtin_unreachable()
+# endif
#else
# define likely(p) (!!(p))
# define unlikely(p) (!!(p))
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/c9dde25a62c4612d71250c4eb845154e0ea9e13e
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/c9dde25a62c4612d71250c4eb845154e0ea9e13e
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list