diff options
author | Ian Romanick <[email protected]> | 2004-07-01 23:58:15 +0000 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2004-07-01 23:58:15 +0000 |
commit | 2491d5135ba9aa595041b3db1639ad06e6424f99 (patch) | |
tree | f27d1bc15ef025ed4b3b2b647ff73cde6637b781 /src | |
parent | dedff2c3b2710b81b27503e16cbb37c692dbd7a4 (diff) |
Make sure THREADS is set no matter which threading model is selected.
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/glapi/gl_x86_asm.py | 4 | ||||
-rw-r--r-- | src/mesa/x86/glapi_x86.S | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/mesa/glapi/gl_x86_asm.py b/src/mesa/glapi/gl_x86_asm.py index 9bca436f87f..346252b7b62 100644 --- a/src/mesa/glapi/gl_x86_asm.py +++ b/src/mesa/glapi/gl_x86_asm.py @@ -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\\' diff --git a/src/mesa/x86/glapi_x86.S b/src/mesa/x86/glapi_x86.S index 035d7e0e950..bc4aca5abc1 100644 --- a/src/mesa/x86/glapi_x86.S +++ b/src/mesa/x86/glapi_x86.S @@ -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; \ |