gallium/tgsi_from_mesa: Add 'extern "C"' to be able to include from C++
authorGert Wollny <gw.fossdev@gmail.com>
Mon, 25 Nov 2019 18:27:13 +0000 (19:27 +0100)
committerGert Wollny <gw.fossdev@gmail.com>
Sat, 4 Jan 2020 16:22:40 +0000 (16:22 +0000)
The r600/nir backend is in C++ and needs to include this file.

Signed-off-by: Gert Wollny <gw.fossdev@gmail.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3286>

src/gallium/auxiliary/tgsi/tgsi_from_mesa.h

index c23e6189bd5d9978c7943f4fe7deec9565d15fdb..b75f37fed2e2be542c66706c9c6a3359667479fc 100644 (file)
 
 #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 */