gallium: Wrap some header files into "extern C"
authorLouis-Francis Ratté-Boulianne <lfrb@collabora.com>
Wed, 22 Jul 2020 20:25:38 +0000 (16:25 -0400)
committerMarge Bot <eric+marge@anholt.net>
Tue, 10 Nov 2020 15:37:07 +0000 (15:37 +0000)
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7477>

src/gallium/auxiliary/nir/nir_draw_helpers.h
src/gallium/auxiliary/util/u_pstipple.h

index 08d163b..4262c45 100644 (file)
 
 #ifndef NIR_DRAW_HELPERS_H
 #define NIR_DRAW_HELPERS_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 struct nir_shader;
 void
 nir_lower_pstipple_fs(struct nir_shader *shader,
@@ -37,4 +42,9 @@ nir_lower_aaline_fs(struct nir_shader *shader, int *varying);
 
 void
 nir_lower_aapoint_fs(struct nir_shader *shader, int *varying);
+
+#ifdef __cplusplus
+}
+#endif
+
 #endif
index d1662be..9f71942 100644 (file)
 
 #include "pipe/p_compiler.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 struct pipe_context;
 struct pipe_resource;
 struct pipe_shader_state;
@@ -58,5 +62,8 @@ util_pstipple_create_fragment_shader(const struct tgsi_token *tokens,
                                      unsigned fixed_unit,
                                      unsigned wincoordFile);
 
+#ifdef __cplusplus
+}
+#endif
 
 #endif