Mesa (master): intel: tools: aubwrite: wrap function declarations for c++
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Aug 22 17:06:09 UTC 2018
Module: Mesa
Branch: master
Commit: 475d670ef771ebea73d81c19760b10b22f37fee6
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=475d670ef771ebea73d81c19760b10b22f37fee6
Author: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Date: Sun Jul 29 19:32:13 2018 +0100
intel: tools: aubwrite: wrap function declarations for c++
Reviewed-by: Rafael Antognolli <rafael.antognolli at intel.com>
---
src/intel/tools/aub_write.h | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/src/intel/tools/aub_write.h b/src/intel/tools/aub_write.h
index b421679b9e..6a09c1747b 100644
--- a/src/intel/tools/aub_write.h
+++ b/src/intel/tools/aub_write.h
@@ -31,6 +31,10 @@
#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 */
More information about the mesa-commit
mailing list