From 8e77da1cd7d63af5e7ffcf7ea220cdaf1bdc8162 Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Tue, 29 Jun 2004 19:08:20 +0000 Subject: First phase of TLS work. At this point SPARC assembly dispatch is broken, but it will be fixed "shortly." This is pretty much the same as the patch I sent to the dri-devel list on 22-Jun-2004. --- src/mesa/glapi/glapitemp.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/mesa/glapi/glapitemp.py') diff --git a/src/mesa/glapi/glapitemp.py b/src/mesa/glapi/glapitemp.py index cb24b04e65..8ce3092213 100644 --- a/src/mesa/glapi/glapitemp.py +++ b/src/mesa/glapi/glapitemp.py @@ -1,6 +1,6 @@ #!/usr/bin/env python -# $Id: glapitemp.py,v 1.5 2002/11/30 17:18:46 brianp Exp $ +# $Id: glapitemp.py,v 1.6 2004/06/29 19:08:20 idr Exp $ # Mesa 3-D graphics library # Version: 4.1 @@ -67,6 +67,7 @@ def PrintHead(): */ +#if defined( NAME ) #ifndef KEYWORD1 #define KEYWORD1 #endif @@ -75,10 +76,6 @@ def PrintHead(): #define KEYWORD2 #endif -#ifndef NAME -#error NAME must be defined -#endif - #ifndef DISPATCH #error DISPATCH must be defined #endif @@ -231,6 +228,7 @@ def EmitFunction(name, returnType, argTypeList, argNameList, alias, offset): def PrintInitDispatch(): print """ +#endif /* defined( NAME ) */ /* * This is how a dispatch table can be initialized with all the functions -- cgit v1.2.3