From 803f9a1682ce8571bac51cd1be5a6122e2858e0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Tue, 27 Jun 2017 22:10:12 -0700 Subject: [PATCH] Fixed build. --- include/bx/macros.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/bx/macros.h b/include/bx/macros.h index fa3731d..3df54c6 100644 --- a/include/bx/macros.h +++ b/include/bx/macros.h @@ -70,7 +70,11 @@ # define BX_UNLIKELY(_x) __builtin_expect(!!(_x), 0) # define BX_NO_INLINE __attribute__( (noinline) ) # define BX_NO_RETURN __attribute__( (noreturn) ) -# define BX_FALLTHROUGH __attribute__ ((fallthrough)); +# if BX_COMPILER_GCC >= 70000 +# define BX_FALLTHROUGH __attribute__( (fallthrough) ) +# else +# define BX_FALLTHROUGH BX_NOOP() +# endif // BX_COMPILER_GCC >= 70000 # define BX_NO_VTABLE # define BX_OVERRIDE # define BX_PRINTF_ARGS(_format, _args) __attribute__( (format(__printf__, _format, _args) ) )