[Mesa-dev] [PATCH 2/2] gallium/svga: Remove useless ARRAY_SIZE declaration
Axel Davy
axel.davy at ens.fr
Sun Apr 26 14:23:48 PDT 2015
This is already declared in util/macros.h
Signed-off-by: Axel Davy <axel.davy at ens.fr>
---
src/gallium/drivers/svga/include/svga3d_surfacedefs.h | 4 ----
1 file changed, 4 deletions(-)
diff --git a/src/gallium/drivers/svga/include/svga3d_surfacedefs.h b/src/gallium/drivers/svga/include/svga3d_surfacedefs.h
index 1592fec..302e9aa 100644
--- a/src/gallium/drivers/svga/include/svga3d_surfacedefs.h
+++ b/src/gallium/drivers/svga/include/svga3d_surfacedefs.h
@@ -32,10 +32,6 @@
#include "svga3d_reg.h"
#include "util/macros.h"
-#ifndef ARRAY_SIZE
-#define ARRAY_SIZE(A) (sizeof(A) / sizeof(A[0]))
-#endif
-
#define max_t(type, x, y) ((x) > (y) ? (x) : (y))
/*
--
2.1.0
More information about the mesa-dev
mailing list