diff options
author | Gert Wollny <[email protected]> | 2019-12-01 19:04:16 +0100 |
---|---|---|
committer | Gert Wollny <[email protected]> | 2020-01-04 16:22:40 +0000 |
commit | bfbdaf9a46adb5c972b7f2464bd5f030c55da1cf (patch) | |
tree | 05365ed6fa35d06f0eecf79c95406b6123da84e3 /src/gallium | |
parent | 23c5ba8baa59262726e053631dadcf208e5d7c8d (diff) |
r600: Make it possible to include r600_asm.h in a C++ file
Signed-off-by: Gert Wollny <[email protected]>
Reviewed-by: Konstantin Kharlamov <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3286>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/r600/r600_asm.h | 9 |
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 |