summaryrefslogtreecommitdiff
path: root/src/gallium/include/pipe
diff options
context:
space:
mode:
authorJakob Bornecrantz <jakob@tungstengraphics.com>2008-04-07 19:39:28 +0200
committerJakob Bornecrantz <jakob@tungstengraphics.com>2008-04-07 19:39:28 +0200
commit24fc93ebdc119ee01d6ce47ea4fe33a2a8067bd2 (patch)
tree826cdf2d974531797a7982197d11c7aff2436ec7 /src/gallium/include/pipe
parenta8a5376406cabf5aa6a44f7d37f5f8abbb4adf56 (diff)
gallium: Stop warnings
Diffstat (limited to 'src/gallium/include/pipe')
-rw-r--r--src/gallium/include/pipe/p_util.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/include/pipe/p_util.h b/src/gallium/include/pipe/p_util.h
index 8e3aaee496..1bc00ac7a0 100644
--- a/src/gallium/include/pipe/p_util.h
+++ b/src/gallium/include/pipe/p_util.h
@@ -207,7 +207,10 @@ mem_dup(const void *src, uint size)
#define MIN2( A, B ) ( (A)<(B) ? (A) : (B) )
#define MAX2( A, B ) ( (A)>(B) ? (A) : (B) )
+/* JB stop warnings */
+#ifndef Elements
#define Elements(x) (sizeof(x)/sizeof((x)[0]))
+#endif
#define Offset(TYPE, MEMBER) ((unsigned)&(((TYPE *)NULL)->MEMBER))
/**