intel: tools: aubwrite: wrap function declarations for c++
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Sun, 29 Jul 2018 18:32:13 +0000 (19:32 +0100)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Wed, 22 Aug 2018 17:02:11 +0000 (18:02 +0100)
Reviewed-by: Rafael Antognolli <rafael.antognolli@intel.com>
src/intel/tools/aub_write.h

index b421679b9ebd93d81c7194abfd8218e565e4c22b..6a09c1747b9f352d86782872970c9d54cc12a4e0 100644 (file)
 #include "dev/gen_device_info.h"
 #include "common/gen_gem.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 struct aub_ppgtt_table {
    uint64_t phys_addr;
    struct aub_ppgtt_table *subtables[512];
@@ -78,4 +82,8 @@ void aub_write_trace_block(struct aub_file *aub,
 void aub_write_exec(struct aub_file *aub, uint64_t batch_addr,
                     uint64_t offset, int ring_flag);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* INTEL_AUB_WRITE */