summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2009-04-14 19:44:16 -0600
committerBrian Paul <[email protected]>2009-04-14 19:44:16 -0600
commitcdc7f681c87b0b6379de04066c25fdeb6de96405 (patch)
tree40e93e83aec03523c6aa9a6ce0f187fbc3be81a5 /src/mesa
parent92cc9970039d9c9385dc472fbfac58b93799f5ae (diff)
mesa: use standard offsetof() macro
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/main/extensions.c2
1 files changed, 1 insertions, 1 deletions
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