Module: Mesa Branch: master Commit: cdc7f681c87b0b6379de04066c25fdeb6de96405 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=cdc7f681c87b0b6379de04066c25fdeb6de96405
Author: Brian Paul <[email protected]> Date: Tue Apr 14 19:44:16 2009 -0600 mesa: use standard offsetof() macro --- src/mesa/main/extensions.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/mesa/main/extensions.c b/src/mesa/main/extensions.c index 147d923..5c4bea9 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 _______________________________________________ mesa-commit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-commit
