summaryrefslogtreecommitdiff
path: root/ir.h
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2010-05-06 13:09:54 -0700
committerEric Anholt <eric@anholt.net>2010-06-24 15:05:20 -0700
commit829e0a8eff0e657c85fa7fc53a4b456375b434cc (patch)
treed1d47b23b007496e055951ab9c9cf3ca7ef7465a /ir.h
parent110d5cc83c18999e578ef7485e3c976446176b81 (diff)
ir_to_mesa: Add (almost) the rest of the builtin varyings.
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;
};