summaryrefslogtreecommitdiff
path: root/ir.h
diff options
context:
space:
mode:
Diffstat (limited to 'ir.h')
-rw-r--r--ir.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/ir.h b/ir.h
index 9277f76204..dbf5df893a 100644
--- a/ir.h
+++ b/ir.h
@@ -33,6 +33,10 @@
#include "ir_visitor.h"
#include "ir_hierarchical_visitor.h"
+#ifndef ARRAY_SIZE
+#define ARRAY_SIZE(x) (sizeof(x) / sizeof(x[0]))
+#endif
+
struct ir_program {
void *bong_hits;
};