diff --git a/new.cc b/new.cc index 451f2e5..e46e302 100644 --- a/new.cc +++ b/new.cc @@ -1,8 +1,6 @@ #include #include -#define noreturn - #include "h_malloc.h" #include "util.h" diff --git a/util.h b/util.h index f22ece5..3c7a428 100644 --- a/util.h +++ b/util.h @@ -2,7 +2,9 @@ #define UTIL_H #include -#include + +// C11 noreturn doesn't work in C++ +#define noreturn __attribute__((noreturn)) #define likely(x) __builtin_expect(!!(x), 1) #define unlikely(x) __builtin_expect(!!(x), 0)