From 07d189c4169623f3a2b32f4f62d82d860457e30e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Louis-Francis=20Ratt=C3=A9-Boulianne?= Date: Wed, 22 Jul 2020 16:25:38 -0400 Subject: [PATCH] gallium: Wrap some header files into "extern C" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Emil Velikov Reviewed-by: Marek Olšák Part-of: --- src/gallium/auxiliary/nir/nir_draw_helpers.h | 10 ++++++++++ src/gallium/auxiliary/util/u_pstipple.h | 7 +++++++ 2 files changed, 17 insertions(+) diff --git a/src/gallium/auxiliary/nir/nir_draw_helpers.h b/src/gallium/auxiliary/nir/nir_draw_helpers.h index 08d163b978d..4262c45ef42 100644 --- a/src/gallium/auxiliary/nir/nir_draw_helpers.h +++ b/src/gallium/auxiliary/nir/nir_draw_helpers.h @@ -25,6 +25,11 @@ #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 diff --git a/src/gallium/auxiliary/util/u_pstipple.h b/src/gallium/auxiliary/util/u_pstipple.h index d1662be2839..9f71942e8e0 100644 --- a/src/gallium/auxiliary/util/u_pstipple.h +++ b/src/gallium/auxiliary/util/u_pstipple.h @@ -31,6 +31,10 @@ #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