[vlc-commits] [Git][videolan/vlc][master] vlc_common: don't redefine `unreachable` when using C23
Steve Lhomme (@robUx4)
gitlab at videolan.org
Thu May 22 16:17:30 UTC 2025
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
d56f1e19 by Gabriel Lafond-Thenaille at 2025-05-22T16:02:15+00:00
vlc_common: don't redefine `unreachable` when using C23
- - - - -
1 changed file:
- include/vlc_common.h
Changes:
=====================================
include/vlc_common.h
=====================================
@@ -221,7 +221,9 @@
#if defined (__GNUC__) || defined (__clang__)
# 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
#elif defined(_MSC_VER)
# define likely(p) (!!(p))
# define unlikely(p) (!!(p))
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/d56f1e196b570a2e2893c31a0d593bab2b31b349
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/d56f1e196b570a2e2893c31a0d593bab2b31b349
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