mesa: use standard offsetof() macro

This commit is contained in:
Brian Paul
2009-04-14 19:44:16 -06:00
parent 92cc997003
commit cdc7f681c8

View File

@@ -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