r600: protect r600_isa.h with extern "C"
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Sun, 8 May 2016 19:53:53 +0000 (14:53 -0500)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Fri, 13 May 2016 06:03:37 +0000 (01:03 -0500)
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/gallium/drivers/r600/r600_isa.h

index b3f49bda88ecf25a8ba638b63dc0444b788fe2fa..005b580ac2c9f9a7ca266dac84ff05af811b3016 100644 (file)
 
 #include "util/u_debug.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /* ALU flags */
 enum alu_op_flags
 {
@@ -1236,4 +1240,8 @@ r600_isa_cf_by_opcode(struct r600_isa* isa, unsigned opcode, unsigned is_alu) {
        return op - 1;
 }
 
+#ifdef __cplusplus
+} /* extern "C" */
+#endif
+
 #endif /* R600_ISA_H_ */