From: Gert Wollny Date: Mon, 25 Nov 2019 18:27:13 +0000 (+0100) Subject: gallium/tgsi_from_mesa: Add 'extern "C"' to be able to include from C++ X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f69bf7fe8c98c9a4aa4a447443597ae038f6bf0b;p=mesa.git gallium/tgsi_from_mesa: Add 'extern "C"' to be able to include from C++ The r600/nir backend is in C++ and needs to include this file. Signed-off-by: Gert Wollny Reviewed-by: Eric Anholt Part-of: --- diff --git a/src/gallium/auxiliary/tgsi/tgsi_from_mesa.h b/src/gallium/auxiliary/tgsi/tgsi_from_mesa.h index c23e6189bd5..b75f37fed2e 100644 --- a/src/gallium/auxiliary/tgsi/tgsi_from_mesa.h +++ b/src/gallium/auxiliary/tgsi/tgsi_from_mesa.h @@ -32,6 +32,11 @@ #include "compiler/shader_enums.h" +#ifdef __cplusplus +extern "C" { +#endif + + void tgsi_get_gl_varying_semantic(gl_varying_slot attr, bool needs_texcoord_semantic, @@ -84,4 +89,8 @@ tgsi_processor_to_shader_stage(unsigned processor) } } +#ifdef __cplusplus +} +#endif + #endif /* TGSI_FROM_MESA_H */