}
-#if !defined( USE_X86_ASM ) && !defined( XFree86Server )
+#if !defined( USE_X86_ASM ) && !defined( XFree86Server ) && !defined ( XGLServer )
#define NEED_FUNCTION_POINTER
#endif
}
-#if !defined( XFree86Server )
+#if !defined( XFree86Server ) && !defined( XGLServer )
#ifdef USE_X86_ASM
#if defined( GLX_USE_TLS )
/* Do some trivial validation on the name of the function.
*/
-#ifdef MANGLE
- if (!function_names[i] || function_names[i][0] != 'm' || function_names[i][1] != 'g' || function_names[i][2] != 'l')
- return GL_FALSE;
-#else
if (!function_names[i] || function_names[i][0] != 'g' || function_names[i][1] != 'l')
return GL_FALSE;
-#endif
-
/* Determine if the named function already exists. If the function does
* exist, it must have the same parameter signature as the function
}
}
-#if !defined( XFree86Server )
+#if !defined( XFree86Server ) && !defined( XGLServer )
/* search static functions */
{
const _glapi_proc func = get_static_proc_address(funcName);
typedef void (*_glapi_warning_func)(void *ctx, const char *str, ...);
+#if defined(USE_MGL_NAMESPACE)
+#define _glapi_set_dispatch _mglapi_set_dispatch
+#define _glapi_get_dispatch _mglapi_get_dispatch
+#define _glapi_set_context _mglapi_set_context
+#define _glapi_get_context _mglapi_get_context
+#define _glapi_Context _mglapi_Context
+#define _glapi_Dispatch _mglapi_Dispatch
+#endif
#if defined (GLX_USE_TLS)