check for USE_MGL_NAMESPACE

This commit is contained in:
Brian Paul 2006-11-03 23:28:36 +00:00
parent d2f80777e8
commit 2fbaddfa69
3 changed files with 15 additions and 1 deletions

View file

@ -141,6 +141,10 @@ class PrintGenericStubs(gl_XML.gl_print_base):
print '# define THREADS'
print '#endif'
print ''
print '#ifdef USE_MGL_NAMESPACE'
print '#define _glapi_Dispatch _mglapi_Dispatch'
print '#endif'
print ''
print '\t.text'
print ''
print '#ifdef GLX_USE_TLS'

View file

@ -79,6 +79,10 @@ class PrintGenericStubs(gl_XML.gl_print_base):
print '# define THREADS'
print '#endif'
print ''
print '#ifdef USE_MGL_NAMESPACE'
print '#define _glapi_Dispatch _mglapi_Dispatch'
print '#endif'
print ''
print '#ifdef GLX_USE_TLS'
print ''
print '# define GL_STUB(fn,off,fn_alt)\t\t\t\\'

View file

@ -1,6 +1,6 @@
/*
* Mesa 3-D graphics library
* Version: 6.5.1
* Version: 6.5.2
*
* Copyright (C) 1999-2006 Brian Paul All Rights Reserved.
*
@ -64,6 +64,12 @@
#define GLTHREAD_H
#if defined(USE_MGL_NAMESPACE)
#define _glapi_Dispatch _mglapi_Dispatch
#endif
#if (defined(PTHREADS) || defined(SOLARIS_THREADS) ||\
defined(WIN32_THREADS) || defined(USE_XTHREADS) || defined(BEOS_THREADS)) \
&& !defined(THREADS)