From f69bf7fe8c98c9a4aa4a447443597ae038f6bf0b Mon Sep 17 00:00:00 2001 From: Gert Wollny Date: Mon, 25 Nov 2019 19:27:13 +0100 Subject: [PATCH] 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: --- src/gallium/auxiliary/tgsi/tgsi_from_mesa.h | 9 +++++++++ 1 file changed, 9 insertions(+) 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 */ -- 2.30.2