From 50292d76c5aa59be06468e3c2855dd7c1d837ecb Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Mon, 15 Sep 2014 12:04:32 -0700 Subject: [PATCH] vc4: Reuse the util header instead of defining our own ARRAY_SIZE. Fixes redefinition warnings if you end up including this header before util stuff. --- src/gallium/drivers/vc4/vc4_qpu_defines.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/gallium/drivers/vc4/vc4_qpu_defines.h b/src/gallium/drivers/vc4/vc4_qpu_defines.h index f7ad01c6163..0715df25b2d 100644 --- a/src/gallium/drivers/vc4/vc4_qpu_defines.h +++ b/src/gallium/drivers/vc4/vc4_qpu_defines.h @@ -25,8 +25,7 @@ #define VC4_QPU_DEFINES_H #include - -#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0])) +#include enum qpu_op_add { QPU_A_NOP, -- 2.30.2