mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-22 21:30:31 +01:00
gallium: Stop warnings
This commit is contained in:
parent
a8a5376406
commit
24fc93ebdc
1 changed files with 3 additions and 0 deletions
|
|
@ -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))
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue