vc4: Reuse the util header instead of defining our own ARRAY_SIZE.
authorEric Anholt <eric@anholt.net>
Mon, 15 Sep 2014 19:04:32 +0000 (12:04 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 15 Sep 2014 20:12:27 +0000 (13:12 -0700)
Fixes redefinition warnings if you end up including this header before
util stuff.

src/gallium/drivers/vc4/vc4_qpu_defines.h

index f7ad01c6163f078f9375b54c7fcd10dd02941f83..0715df25b2d2e42039c5424b4d7bfb6ee212e6ea 100644 (file)
@@ -25,8 +25,7 @@
 #define VC4_QPU_DEFINES_H
 
 #include <assert.h>
-
-#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
+#include <util/macros.h>
 
 enum qpu_op_add {
         QPU_A_NOP,