From: Brian Paul Date: Wed, 15 Apr 2009 01:44:16 +0000 (-0600) Subject: mesa: use standard offsetof() macro X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cdc7f681c87b0b6379de04066c25fdeb6de96405;p=mesa.git mesa: use standard offsetof() macro --- diff --git a/src/mesa/main/extensions.c b/src/mesa/main/extensions.c index 147d923e64f..5c4bea9cf62 100644 --- a/src/mesa/main/extensions.c +++ b/src/mesa/main/extensions.c @@ -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