mirror of
https://github.com/thorvg/thorvg.git
synced 2025-07-23 22:58:44 +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
11c6da340b
commit
b79e8d5f24
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)
|
} while (0)
|
||||||
|
|
||||||
#ifdef __GNUC__
|
#if defined(__GNUC__) || defined(__clang__)
|
||||||
#define JERRY_UNREACHABLE() __builtin_unreachable ()
|
#define JERRY_UNREACHABLE() __builtin_unreachable ()
|
||||||
#endif /* __GNUC__ */
|
#elif defined(_MSC_VER)
|
||||||
|
#define JERRY_UNREACHABLE() _assume (0)
|
||||||
#ifdef _MSC_VER
|
#else
|
||||||
#define JERRY_UNREACHABLE() _assume (0)
|
#ifndef JERRY_UNREACHABLE
|
||||||
#endif /* _MSC_VER */
|
#define JERRY_UNREACHABLE()
|
||||||
|
#endif
|
||||||
#ifndef JERRY_UNREACHABLE
|
|
||||||
#define JERRY_UNREACHABLE()
|
|
||||||
#endif /* !JERRY_UNREACHABLE */
|
#endif /* !JERRY_UNREACHABLE */
|
||||||
|
|
||||||
#endif /* !JERRY_NDEBUG */
|
#endif /* !JERRY_NDEBUG */
|
||||||
|
|
Loading…
Add table
Reference in a new issue