diff options
author | Daniel Stone <daniel@fooishbar.org> | 2012-07-10 02:02:50 +0100 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2012-07-09 23:06:41 -0700 |
commit | 854c1fa4a1e90288d1e2f3777fac3e1a9acb1235 (patch) | |
tree | 34d17367c91f9145ceccb90beaccddad68be7d05 /glx | |
parent | 67953d6975ef2ee573b95e7641aaf3d72e9f8379 (diff) |
Add a common ARRAY_SIZE macro to dix.h
Does what it says on the box, replacing those from Xi/ and glx/.
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
Reviewed-by: Cyril Brulebois <kibi@debian.org>
Reviewed-by: Jamey Sharp <jamey@minilop.net>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'glx')
-rw-r--r-- | glx/glxdricommon.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/glx/glxdricommon.c b/glx/glxdricommon.c index 44d5a3e7b..c90f38098 100644 --- a/glx/glxdricommon.c +++ b/glx/glxdricommon.c @@ -107,8 +107,6 @@ __ATTRIB(__DRI_ATTRIB_BUFFER_SIZE, rgbBits), __ATTRIB(__DRI_ATTRIB_BIND_TO_MIPMAP_TEXTURE, bindToMipmapTexture), __ATTRIB(__DRI_ATTRIB_YINVERTED, yInverted),}; -#define ARRAY_SIZE(a) (sizeof (a) / sizeof ((a)[0])) - static void setScalar(__GLXconfig * config, unsigned int attrib, unsigned int value) { |