From 33640499b96bc48d59fb19062ac94436180ded0b Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Mon, 14 Sep 2009 12:10:50 +0800 Subject: dri/common: Protect driDispatchRemapTable with IN_DRIVER_DRIVER. --- src/mesa/drivers/dri/common/utils.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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, -- cgit v1.2.3