summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChia-I Wu <olvaffe@gmail.com>2009-09-14 12:10:50 +0800
committerChia-I Wu <olvaffe@gmail.com>2009-09-14 13:04:58 +0800
commit33640499b96bc48d59fb19062ac94436180ded0b (patch)
tree693a6970b706eab85fe14a78eecf9ea46bc3b4ca
parent0878cce17d0b74c2cbdda9baaacd3f91375b39bc (diff)
dri/common: Protect driDispatchRemapTable with IN_DRIVER_DRIVER.
-rw-r--r--src/mesa/drivers/dri/common/utils.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/common/utils.c b/src/mesa/drivers/dri/common/utils.c
index 66f277c10b..6f4a4f7f22 100644
--- a/src/mesa/drivers/dri/common/utils.c
+++ b/src/mesa/drivers/dri/common/utils.c
@@ -38,8 +38,16 @@
#include "utils.h"
+#ifdef IN_DRI_DRIVER
+
int driDispatchRemapTable[ driDispatchRemapTable_size ];
+#else /* IN_DRI_DRIVER */
+
+#define driDispatchRemapTable_size 1
+static int driDispatchRemapTable[ driDispatchRemapTable_size ];
+
+#endif /* IN_DRI_DRIVER */
unsigned
driParseDebugString( const char * debug,