diff options
author | Jakob Bornecrantz <jakob@tungstengraphics.com> | 2008-04-07 19:39:28 +0200 |
---|---|---|
committer | Jakob Bornecrantz <jakob@tungstengraphics.com> | 2008-04-07 19:39:28 +0200 |
commit | 24fc93ebdc119ee01d6ce47ea4fe33a2a8067bd2 (patch) | |
tree | 826cdf2d974531797a7982197d11c7aff2436ec7 | |
parent | a8a5376406cabf5aa6a44f7d37f5f8abbb4adf56 (diff) |
gallium: Stop warnings
-rw-r--r-- | src/gallium/include/pipe/p_util.h | 3 |
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)) /** |