r600: Make it possible to include r600_asm.h in a C++ file
[mesa.git] / 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