From: Gert Wollny Date: Sun, 1 Dec 2019 18:04:16 +0000 (+0100) Subject: r600: Make it possible to include r600_asm.h in a C++ file X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bfbdaf9a46adb5c972b7f2464bd5f030c55da1cf;p=mesa.git r600: Make it possible to include r600_asm.h in a C++ file Signed-off-by: Gert Wollny Reviewed-by: Konstantin Kharlamov Part-of: --- 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