Browse Source

vlc_common: don't redefine `unreachable` when using C23

Fixes #29390

(cherry picked from commit d56f1e196b)
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
cherry-pick-c5513cf9
Gabriel Lafond-Thenaille 1 year ago
committed by Thomas Guillem
parent
commit
c9dde25a62
  1. 4
      include/vlc_common.h

4
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))

Loading…
Cancel
Save