unbreak compilation with gcc < v4.5
This commit is contained in:
parent
62f1243136
commit
21481421a0
|
@ -253,23 +253,23 @@ extern "C"
|
|||
#endif
|
||||
|
||||
#if !defined(MZ_NORETURN)
|
||||
#if defined(__GNUC__) || defined(__clang__)
|
||||
#define MZ_NORETURN __attribute__((noreturn))
|
||||
#elif defined(_MSC_VER)
|
||||
#define MZ_NORETURN __declspec(noreturn)
|
||||
#else
|
||||
#define MZ_NORETURN
|
||||
#endif /* defined(__GNUC__) || defined(__clang__) */
|
||||
# if defined(__GNUC__) || defined(__clang__)
|
||||
# define MZ_NORETURN __attribute__((noreturn))
|
||||
# elif defined(_MSC_VER)
|
||||
# define MZ_NORETURN __declspec(noreturn)
|
||||
# else
|
||||
# define MZ_NORETURN
|
||||
# endif /* defined(__GNUC__) || defined(__clang__) */
|
||||
#endif /* !defined(MZ_NORETURN) */
|
||||
|
||||
#if !defined(MZ_UNREACHABLE)
|
||||
#if defined(__GNUC__) || defined(__clang__)
|
||||
#define MZ_UNREACHABLE __builtin_unreachable()
|
||||
#elif defined(_MSC_VER)
|
||||
#define MZ_UNREACHABLE __assume(0)
|
||||
#else
|
||||
#define MZ_UNREACHABLE
|
||||
#endif /* defined(__GNUC__) || defined(__clang__) */
|
||||
# if (defined(__GNUC__) && (__GNUC__ > 4)) || defined(__clang__)
|
||||
# define MZ_UNREACHABLE __builtin_unreachable()
|
||||
# elif defined(_MSC_VER)
|
||||
# define MZ_UNREACHABLE __assume(0)
|
||||
# else
|
||||
# define MZ_UNREACHABLE
|
||||
# endif /* defined(__GNUC__) || defined(__clang__) */
|
||||
#endif /* !defined(MZ_UNREACHABLE) */
|
||||
|
||||
/* Allowed by all configurations, currently: */
|
||||
|
|
Loading…
Reference in New Issue
Block a user