r600: Make it possible to include r600_asm.h in a C++ file
authorGert Wollny <gw.fossdev@gmail.com>
Sun, 1 Dec 2019 18:04:16 +0000 (19:04 +0100)
committerGert Wollny <gw.fossdev@gmail.com>
Sat, 4 Jan 2020 16:22:40 +0000 (16:22 +0000)
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>

src/gallium/drivers/r600/r600_asm.h

index ca9280a7a8386ec8d887865548afcc57fb566ebd..71a3ae1bad4357f240a512cffb07ec5446c0200c 100644 (file)
 #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