aboutsummaryrefslogtreecommitdiff
path: root/mesalib/src/mapi/glapi/glapi.h
diff options
context:
space:
mode:
Diffstat (limited to 'mesalib/src/mapi/glapi/glapi.h')
-rw-r--r--mesalib/src/mapi/glapi/glapi.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/mesalib/src/mapi/glapi/glapi.h b/mesalib/src/mapi/glapi/glapi.h
index 39b209fe1..8ef654636 100644
--- a/mesalib/src/mapi/glapi/glapi.h
+++ b/mesalib/src/mapi/glapi/glapi.h
@@ -44,6 +44,9 @@
#ifndef _GLAPI_H
#define _GLAPI_H
+#ifdef __cplusplus
+extern "C" {
+#endif
#ifdef _GLAPI_NO_EXPORTS
# define _GLAPI_EXPORT
#else /* _GLAPI_NO_EXPORTS */
@@ -178,3 +181,6 @@ extern struct _glapi_table *
_glapi_create_table_from_handle(void *handle, const char *symbol_prefix);
#endif
+#ifdef __cplusplus
+}
+#endif