Make sure THREADS is set no matter which threading model is selected.

This commit is contained in:
Ian Romanick 2004-07-01 23:58:15 +00:00
parent dedff2c3b2
commit 2491d5135b
2 changed files with 8 additions and 0 deletions

View file

@ -77,6 +77,10 @@ class PrintGenericStubs(gl_XML.FilterGLAPISpecBase):
print '#define GLOBL_FN(x) GLOBL x'
print '#endif'
print ''
print '#if defined(PTHREADS) || defined(XTHREADS) || defined(SOLARIS_THREADS) || defined(WIN32_THREADS) || defined(BEOS_THREADS)'
print '# define THREADS'
print '#endif'
print ''
print '#if defined(PTHREADS)'
print '# define GL_STUB(fn,off,fn_alt)\t\t\t\\'
print 'ALIGNTEXT16;\t\t\t\t\t\t\\'

View file

@ -47,6 +47,10 @@
#define GLOBL_FN(x) GLOBL x
#endif
#if defined(PTHREADS) || defined(XTHREADS) || defined(SOLARIS_THREADS) || defined(WIN32_THREADS) || defined(BEOS_THREADS)
# define THREADS
#endif
#if defined(PTHREADS)
# define GL_STUB(fn,off,fn_alt) \
ALIGNTEXT16; \