Mesa (master): r600: Make it possible to include r600_asm.h in a C++ file
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Sat Jan 4 16:37:46 UTC 2020
Module: Mesa
Branch: master
Commit: bfbdaf9a46adb5c972b7f2464bd5f030c55da1cf
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=bfbdaf9a46adb5c972b7f2464bd5f030c55da1cf
Author: Gert Wollny <gw.fossdev at gmail.com>
Date: Sun Dec 1 19:04:16 2019 +0100
r600: Make it possible to include r600_asm.h in a C++ file
Signed-off-by: Gert Wollny <gw.fossdev at gmail.com>
Reviewed-by: Konstantin Kharlamov <hi-angel at yandex.ru>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3286>
---
src/gallium/drivers/r600/r600_asm.h | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/src/gallium/drivers/r600/r600_asm.h b/src/gallium/drivers/r600/r600_asm.h
index ca9280a7a83..71a3ae1bad4 100644
--- a/src/gallium/drivers/r600/r600_asm.h
+++ b/src/gallium/drivers/r600/r600_asm.h
@@ -27,6 +27,10 @@
#include "r600_isa.h"
#include "tgsi/tgsi_exec.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
struct r600_bytecode_alu_src {
unsigned sel;
unsigned chan;
@@ -358,4 +362,9 @@ static inline int fp64_switch(int i)
}
return 0;
}
+
+#ifdef __cplusplus
+}
+#endif
+
#endif
More information about the mesa-commit
mailing list