X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fglx%2Fglxextensions.h;h=21ad02a44b44cda00be5cef3e7773a7757fc65f5;hb=a8ce8e35420e57b6921dfce8462a7caa512b797a;hp=906b3fc16c04fa1932d86ffda9d088076fae0f09;hpb=9401516113152ea2a571dc1103a2fa7ce68d4ee8;p=mesa.git diff --git a/src/glx/glxextensions.h b/src/glx/glxextensions.h index 906b3fc16c0..21ad02a44b4 100644 --- a/src/glx/glxextensions.h +++ b/src/glx/glxextensions.h @@ -31,6 +31,10 @@ #ifndef GLX_GLXEXTENSIONS_H #define GLX_GLXEXTENSIONS_H +#ifdef __cplusplus +extern "C" { +#endif + enum { ARB_create_context_bit = 0, @@ -277,11 +281,7 @@ typedef void (*PFNGLXDISABLEEXTENSIONPROC) (const char *name); /* GLX_ALIAS should be used for functions with a non-void return type. GLX_ALIAS_VOID is for functions with a void return type. */ -#ifdef GLX_NO_STATIC_EXTENSION_FUNCTIONS -# define GLX_ALIAS(return_type, real_func, proto_args, args, aliased_func) -# define GLX_ALIAS_VOID(real_func, proto_args, args, aliased_func) -#else -# if defined(__GNUC__) && !defined(GLX_ALIAS_UNSUPPORTED) +# ifdef HAVE_FUNC_ATTRIBUTE_ALIAS /* GLX_ALIAS and GLX_ALIAS_VOID both expand to the macro GLX_ALIAS2. Using the * extra expansion means that the name mangling macros in glx_mangle.h will * apply before stringification, so the alias attribute will have a string like @@ -300,7 +300,10 @@ typedef void (*PFNGLXDISABLEEXTENSIONPROC) (const char *name); # define GLX_ALIAS_VOID(real_func, proto_args, args, aliased_func) \ void real_func proto_args \ { aliased_func args ; } -# endif /* __GNUC__ */ -#endif /* GLX_NO_STATIC_EXTENSION_FUNCTIONS */ +# endif /* HAVE_FUNC_ATTRIBUTE_ALIAS */ + +#ifdef __cplusplus +} +#endif #endif /* GLX_GLXEXTENSIONS_H */