summaryrefslogtreecommitdiffstats
path: root/runtime/unwind/unwind.h
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/unwind/unwind.h')
-rw-r--r--runtime/unwind/unwind.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/runtime/unwind/unwind.h b/runtime/unwind/unwind.h
index ae5e75d3..78a4bfef 100644
--- a/runtime/unwind/unwind.h
+++ b/runtime/unwind/unwind.h
@@ -25,6 +25,11 @@
#define MAX_STACK_DEPTH 8
+#ifndef BUILD_BUG_ON_ZERO
+#define BUILD_BUG_ON_ZERO(e) (sizeof(char[1 - 2 * !!(e)]) - 1)
+#endif
+
+
#define EXTRA_INFO(f) { \
BUILD_BUG_ON_ZERO(offsetof(struct unwind_frame_info, f) \
% FIELD_SIZEOF(struct unwind_frame_info, f)) \