From bfbdaf9a46adb5c972b7f2464bd5f030c55da1cf Mon Sep 17 00:00:00 2001 From: Gert Wollny Date: Sun, 1 Dec 2019 19:04:16 +0100 Subject: [PATCH] r600: Make it possible to include r600_asm.h in a C++ file Signed-off-by: Gert Wollny Reviewed-by: Konstantin Kharlamov Part-of: --- 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 -- 2.30.2