Mesa (master): gallium/tgsi_from_mesa: Add 'extern "C"' to be able to include from C++
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Sat Jan 4 16:37:46 UTC 2020
Module: Mesa
Branch: master
Commit: f69bf7fe8c98c9a4aa4a447443597ae038f6bf0b
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=f69bf7fe8c98c9a4aa4a447443597ae038f6bf0b
Author: Gert Wollny <gw.fossdev at gmail.com>
Date: Mon Nov 25 19:27:13 2019 +0100
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 <gw.fossdev at gmail.com>
Reviewed-by: Eric Anholt <eric at anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3286>
---
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 */
More information about the mesa-commit
mailing list