diff options
Diffstat (limited to 'src/config.h.in')
-rw-r--r-- | src/config.h.in | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/config.h.in b/src/config.h.in index d2078c9a..136454db 100644 --- a/src/config.h.in +++ b/src/config.h.in @@ -18,6 +18,7 @@ #define WABT_CONFIG_H_ #include <stdint.h> +#include <stdlib.h> /* TODO(binji): nice way to define these with WABT_ prefix? */ @@ -57,8 +58,6 @@ #define alloca _alloca #elif defined(__MINGW32__) #include <malloc.h> -#else -#include <stdlib.h> #endif #if COMPILER_IS_CLANG || COMPILER_IS_GNU @@ -93,8 +92,6 @@ #define WABT_STATIC_ASSERT(x) _Static_assert((x), #x) #endif -#define WABT_UNREACHABLE __builtin_unreachable() - #elif COMPILER_IS_MSVC #include <intrin.h> @@ -108,14 +105,14 @@ #define WABT_LIKELY(x) (x) #define WABT_PRINTF_FORMAT(format_arg, first_arg) -#define WABT_UNREACHABLE __assume(0) - #else #error unknown compiler #endif +#define WABT_UNREACHABLE abort() + #ifdef __cplusplus namespace wabt { |