mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-13 19:44:28 +00:00
lottie: fix a compile error on MSC with clang.
issue: https://github.com/thorvg/thorvg/issues/2347
This commit is contained in:
parent
8b5d2e4a13
commit
a0c6025132
1 changed files with 8 additions and 10 deletions
|
@ -99,16 +99,14 @@ void JERRY_ATTR_NORETURN jerry_unreachable (const char *file, const char *functi
|
|||
} \
|
||||
} while (0)
|
||||
|
||||
#ifdef __GNUC__
|
||||
#define JERRY_UNREACHABLE() __builtin_unreachable ()
|
||||
#endif /* __GNUC__ */
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#define JERRY_UNREACHABLE() _assume (0)
|
||||
#endif /* _MSC_VER */
|
||||
|
||||
#ifndef JERRY_UNREACHABLE
|
||||
#define JERRY_UNREACHABLE()
|
||||
#if defined(__GNUC__) || defined(__clang__)
|
||||
#define JERRY_UNREACHABLE() __builtin_unreachable ()
|
||||
#elif defined(_MSC_VER)
|
||||
#define JERRY_UNREACHABLE() _assume (0)
|
||||
#else
|
||||
#ifndef JERRY_UNREACHABLE
|
||||
#define JERRY_UNREACHABLE()
|
||||
#endif
|
||||
#endif /* !JERRY_UNREACHABLE */
|
||||
|
||||
#endif /* !JERRY_NDEBUG */
|
||||
|
|
Loading…
Add table
Reference in a new issue