From d86d1483ac7da934e935372722999164bfcf6ef7 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Thu, 9 Sep 2004 18:13:35 +0000 Subject: [PATCH] Another attempt at fixing name mangling and gl__unused413(). --- include/GL/gl_mangle.h | 1 + src/mesa/glapi/gl_apitemp.py | 4 ---- src/mesa/glapi/glapitemp.h | 4 ---- 3 files changed, 1 insertion(+), 8 deletions(-) diff --git a/include/GL/gl_mangle.h b/include/GL/gl_mangle.h index 8d3306b9fb1..873be540ab1 100644 --- a/include/GL/gl_mangle.h +++ b/include/GL/gl_mangle.h @@ -30,6 +30,7 @@ /* Internal symbols which may collide with other OpenGL implementations. */ #define __glCoreCreateContext __mglCoreCreateContext #define __glCoreNopDispatch __mglCoreNopDispatch +#define gl__unused413 MANGLE(__unused413) /*REGENERATE_TO_END-----------ALL LINES BELOW HERE GET REPLACED ON REGENERATION */ diff --git a/src/mesa/glapi/gl_apitemp.py b/src/mesa/glapi/gl_apitemp.py index 8070c4fccf2..b8b32ac3624 100644 --- a/src/mesa/glapi/gl_apitemp.py +++ b/src/mesa/glapi/gl_apitemp.py @@ -129,11 +129,7 @@ class PrintGlOffsets(gl_XML.FilterGLAPISpecBase): #error RETURN_DISPATCH must be defined #endif -#ifdef USE_MGL_NAMESPACE -GLAPI void GLAPIENTRY mgl__unused413(void); /* silence warning */ -#else GLAPI void GLAPIENTRY gl__unused413(void); /* silence warning */ -#endif """ return diff --git a/src/mesa/glapi/glapitemp.h b/src/mesa/glapi/glapitemp.h index 9108826840e..579494ce817 100644 --- a/src/mesa/glapi/glapitemp.h +++ b/src/mesa/glapi/glapitemp.h @@ -69,11 +69,7 @@ #error RETURN_DISPATCH must be defined #endif -#ifdef USE_MGL_NAMESPACE -GLAPI void GLAPIENTRY mgl__unused413(void); /* silence warning */ -#else GLAPI void GLAPIENTRY gl__unused413(void); /* silence warning */ -#endif KEYWORD1 void KEYWORD2 NAME(NewList)(GLuint list, GLenum mode) { -- 2.30.2