Mesa (master): mesa: use standard offsetof() macro
Brian Paul
brianp at kemper.freedesktop.org
Wed Apr 15 02:01:31 UTC 2009
Module: Mesa
Branch: master
Commit: cdc7f681c87b0b6379de04066c25fdeb6de96405
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=cdc7f681c87b0b6379de04066c25fdeb6de96405
Author: Brian Paul <brianp at vmware.com>
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
More information about the mesa-commit
mailing list