From 829e0a8eff0e657c85fa7fc53a4b456375b434cc Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Thu, 6 May 2010 13:09:54 -0700 Subject: ir_to_mesa: Add (almost) the rest of the builtin varyings. --- ir.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ir.h') 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; }; -- cgit v1.2.3