mesa: use standard offsetof() macro
This commit is contained in:
@@ -31,7 +31,7 @@
|
||||
#include "mtypes.h"
|
||||
|
||||
|
||||
#define F(x) (int)(uintptr_t)&(((struct gl_extensions *)0)->x)
|
||||
#define F(x) offsetof(struct gl_extensions, x)
|
||||
#define ON GL_TRUE
|
||||
#define OFF GL_FALSE
|
||||
|
||||
|
Reference in New Issue
Block a user