glx: Sync <GL/glxext.h> with Khronos
[mesa.git] / src / glx / indirect_init.h
index 72255f13014b3b22ba24249980c33d12a676ff43..7fe9a96495d9ba773295acd9b313deab23433d2e 100644 (file)
@@ -36,6 +36,14 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 
 #include "glxclient.h"
 
-extern __GLapi *__glXNewIndirectAPI(void);
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+extern struct _glapi_table *__glXNewIndirectAPI(void);
+
+#ifdef __cplusplus
+} // extern "C"
+#endif
 
 #endif /* _INDIRECT_INIT_H_ */