summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGert Wollny <gw.fossdev@gmail.com>2019-12-01 19:04:16 +0100
committerGert Wollny <gw.fossdev@gmail.com>2020-01-04 16:22:40 +0000
commitbfbdaf9a46adb5c972b7f2464bd5f030c55da1cf (patch)
tree05365ed6fa35d06f0eecf79c95406b6123da84e3
parent23c5ba8baa59262726e053631dadcf208e5d7c8d (diff)
r600: Make it possible to include r600_asm.h in a C++ file
Signed-off-by: Gert Wollny <gw.fossdev@gmail.com> Reviewed-by: Konstantin Kharlamov <hi-angel@yandex.ru> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3286>
-rw-r--r--src/gallium/drivers/r600/r600_asm.h9
1 files changed, 9 insertions, 0 deletions
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