diff options
author | Brian Paul <[email protected]> | 2004-08-25 15:10:51 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2004-08-25 15:10:51 +0000 |
commit | 5920b722b7fb59c340b82ea279033c13a2a01508 (patch) | |
tree | 2db3945475334e529618df45544de6592a53997e /src/mesa/x86/glapi_x86.S | |
parent | 86e001b78cb46c1d5a216dd50b3d7fe32db23575 (diff) |
Fix mgl name mangling (patch 1014800)
Diffstat (limited to 'src/mesa/x86/glapi_x86.S')
-rw-r--r-- | src/mesa/x86/glapi_x86.S | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/mesa/x86/glapi_x86.S b/src/mesa/x86/glapi_x86.S index 6727e708c11..0d4d19db16e 100644 --- a/src/mesa/x86/glapi_x86.S +++ b/src/mesa/x86/glapi_x86.S @@ -32,11 +32,17 @@ #ifndef __WIN32__ #if defined(STDCALL_API) -#define GL_PREFIX(n,n2) GLNAME(CONCAT(gl,n2)) -#elif defined(USE_MGL_NAMESPACE) -#define GL_PREFIX(n,n2) GLNAME(CONCAT(mgl,n)) +# if defined(USE_MGL_NAMESPACE) +# define GL_PREFIX(n,n2) GLNAME(CONCAT(mgl,n2)) +# else +# define GL_PREFIX(n,n2) GLNAME(CONCAT(gl,n2)) +# endif #else -#define GL_PREFIX(n,n2) GLNAME(CONCAT(gl,n)) +# if defined(USE_MGL_NAMESPACE) +# define GL_PREFIX(n,n2) GLNAME(CONCAT(mgl,n)) +# else +# define GL_PREFIX(n,n2) GLNAME(CONCAT(gl,n)) +# endif #endif #define GL_OFFSET(x) CODEPTR(REGOFF(4 * x, EAX)) |