summaryrefslogtreecommitdiffstats
path: root/src/mesa/vbo/vbo_context.h
diff options
context:
space:
mode:
authorMark Janes <[email protected]>2015-03-04 16:37:29 -0800
committerMatt Turner <[email protected]>2015-03-05 10:21:40 -0800
commit237dcb4aa7c39c59bfd225ae3d73caf709be216d (patch)
tree9139b596ac2383fa3e4ada351b94000ba9319e5f /src/mesa/vbo/vbo_context.h
parent2e4c95dfe2cb205c327ceaa12b44a9273bdb20dc (diff)
Fix invalid extern "C" around header inclusion.
System headers may contain C++ declarations, which cannot be given C linkage. For this reason, include statements should never occur inside extern "C". This patch moves the C linkage statements to enclose only the declarations within a single header. Reviewed-by: Jose Fonseca <[email protected]>
Diffstat (limited to 'src/mesa/vbo/vbo_context.h')
-rw-r--r--src/mesa/vbo/vbo_context.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mesa/vbo/vbo_context.h b/src/mesa/vbo/vbo_context.h
index 3b454be4422..6099b56e661 100644
--- a/src/mesa/vbo/vbo_context.h
+++ b/src/mesa/vbo/vbo_context.h
@@ -58,6 +58,10 @@
#include "main/macros.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
struct vbo_context {
struct gl_client_array currval[VBO_ATTRIB_MAX];
@@ -175,4 +179,8 @@ vbo_get_default_vals_as_union(GLenum format)
}
}
+#ifdef __cplusplus
+} // extern "C"
+#endif
+
#endif