summaryrefslogtreecommitdiff
path: root/src/mesa/glapi/glapidispatch.h
diff options
context:
space:
mode:
authorChia-I Wu <olvaffe@gmail.com>2009-10-16 16:04:06 +0800
committerBrian Paul <brianp@vmware.com>2009-10-23 09:10:04 -0600
commit6e99e6ddbf488f6955e34ef0bc438fdcb4d90f74 (patch)
tree75831ddbde201f3ccee8a6f62a24151c66391a53 /src/mesa/glapi/glapidispatch.h
parent22884db174b9fb0736cec1c6a192f8b9a97500c1 (diff)
glapi: Always build libglapi.a.
This is made possible by making glapioffsets.h and glapidispatch.h internal headers of glapi. They should only be included indirectly through dispatch.h by mesa. Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
Diffstat (limited to 'src/mesa/glapi/glapidispatch.h')
-rw-r--r--src/mesa/glapi/glapidispatch.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mesa/glapi/glapidispatch.h b/src/mesa/glapi/glapidispatch.h
index 1d26dfb5bf..d6ba92824a 100644
--- a/src/mesa/glapi/glapidispatch.h
+++ b/src/mesa/glapi/glapidispatch.h
@@ -29,6 +29,8 @@
# define _GLAPI_DISPATCH_H_
+/* this file should not be included directly in mesa */
+
/**
* \file glapidispatch.h
* Macros for handling GL dispatch tables.
@@ -1281,7 +1283,7 @@
#define GET_MultiTexCoord4svARB(disp) ((disp)->MultiTexCoord4svARB)
#define SET_MultiTexCoord4svARB(disp, fn) ((disp)->MultiTexCoord4svARB = fn)
-#if !defined(IN_DRI_DRIVER)
+#if !defined(_GLAPI_USE_REMAP_TABLE)
#define CALL_AttachShader(disp, parameters) (*((disp)->AttachShader)) parameters
#define GET_AttachShader(disp) ((disp)->AttachShader)
@@ -4000,6 +4002,6 @@ extern int driDispatchRemapTable[ driDispatchRemapTable_size ];
#define GET_GetQueryObjectui64vEXT(disp) GET_by_offset(disp, driDispatchRemapTable[GetQueryObjectui64vEXT_remap_index])
#define SET_GetQueryObjectui64vEXT(disp, fn) SET_by_offset(disp, driDispatchRemapTable[GetQueryObjectui64vEXT_remap_index], fn)
-#endif /* !defined(IN_DRI_DRIVER) */
+#endif /* !defined(_GLAPI_USE_REMAP_TABLE) */
#endif /* !defined( _GLAPI_DISPATCH_H_ ) */