X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fmapi%2Fglapi%2Fglapi.c;h=53cfd7f087a1b67824cdd6f9f26c32d7c52e16f0;hb=b68ff2b8731427b3b68c9c81902f7ba93606caaf;hp=18a7d31a758dc5801d526302822c6636dc8281e9;hpb=d5e9426b9605264608e0b1204ebf818103f1f011;p=mesa.git diff --git a/src/mapi/glapi/glapi.c b/src/mapi/glapi/glapi.c index 18a7d31a758..53cfd7f087a 100644 --- a/src/mapi/glapi/glapi.c +++ b/src/mapi/glapi/glapi.c @@ -1,6 +1,5 @@ /* * Mesa 3-D graphics library - * Version: 7.9 * * Copyright (C) 2010 LunarG Inc. * @@ -34,11 +33,11 @@ * u_current.c. */ -#ifdef GLX_USE_TLS +#ifdef USE_ELF_TLS /* not used, but defined for compatibility */ const struct _glapi_table *_glapi_Dispatch; const void *_glapi_Context; -#endif /* GLX_USE_TLS */ +#endif /* USE_ELF_TLS */ void _glapi_destroy_multithread(void) @@ -55,11 +54,11 @@ _glapi_check_multithread(void) void _glapi_set_context(void *context) { - u_current_set_user((const void *) context); + u_current_set_context((const void *) context); } void _glapi_set_dispatch(struct _glapi_table *dispatch) { - u_current_set((const struct mapi_table *) dispatch); + u_current_set_table((const struct _glapi_table *) dispatch); }