Mesa (main): util/primconvert: add C++ guards to header
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed May 19 03:08:35 UTC 2021
Module: Mesa
Branch: main
Commit: 0df249f542c460e3044c1bc871bc5897fe65d469
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=0df249f542c460e3044c1bc871bc5897fe65d469
Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date: Tue May 11 14:47:29 2021 -0400
util/primconvert: add C++ guards to header
Reviewed-by: Jesse Natalie <jenatali at microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10868>
---
src/gallium/auxiliary/indices/u_primconvert.h | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/src/gallium/auxiliary/indices/u_primconvert.h b/src/gallium/auxiliary/indices/u_primconvert.h
index 22933891911..080c68a74e7 100644
--- a/src/gallium/auxiliary/indices/u_primconvert.h
+++ b/src/gallium/auxiliary/indices/u_primconvert.h
@@ -29,6 +29,10 @@
#include "pipe/p_state.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
struct primconvert_context;
struct primconvert_config {
@@ -52,4 +56,8 @@ void util_primconvert_draw_vbo(struct primconvert_context *pc,
const struct pipe_draw_start_count_bias *draws,
unsigned num_draws);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* U_PRIMCONVERT_H_ */
More information about the mesa-commit
mailing list