summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/api_exec.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/main/api_exec.h')
-rw-r--r--src/mesa/main/api_exec.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mesa/main/api_exec.h b/src/mesa/main/api_exec.h
index ff35b78bb9f..1e4a9d61a46 100644
--- a/src/mesa/main/api_exec.h
+++ b/src/mesa/main/api_exec.h
@@ -26,6 +26,9 @@
#ifndef API_EXEC_H
#define API_EXEC_H
+#ifdef __cplusplus
+extern "C" {
+#endif
struct _glapi_table;
struct gl_context;
@@ -39,4 +42,8 @@ _mesa_initialize_exec_table(struct gl_context *ctx);
extern void
_mesa_initialize_dispatch_tables(struct gl_context *ctx);
+#ifdef __cplusplus
+} // extern "C"
+#endif
+
#endif