[Mesa-dev] [PATCH 07/22] intel/common/gen_decoder: make useable from C++ source

kevin.rogovin at intel.com kevin.rogovin at intel.com
Mon Sep 25 10:34:07 UTC 2017


From: Kevin Rogovin <kevin.rogovin at intel.com>

Signed-off-by: Kevin Rogovin <kevin.rogovin at intel.com>
---
 src/intel/common/gen_decoder.h     | 7 +++++++
 src/intel/common/gen_device_info.h | 8 ++++++++
 2 files changed, 15 insertions(+)

diff --git a/src/intel/common/gen_decoder.h b/src/intel/common/gen_decoder.h
index cfc9f2e..1603336 100644
--- a/src/intel/common/gen_decoder.h
+++ b/src/intel/common/gen_decoder.h
@@ -29,6 +29,10 @@
 
 #include "common/gen_device_info.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 struct gen_spec;
 struct gen_group;
 struct gen_field;
@@ -147,5 +151,8 @@ void gen_print_group(FILE *out,
                      struct gen_group *group,
                      uint64_t offset, const uint32_t *p,
                      bool color);
+#ifdef __cplusplus
+}
+#endif
 
 #endif /* GEN_DECODER_H */
diff --git a/src/intel/common/gen_device_info.h b/src/intel/common/gen_device_info.h
index ede4915..e8a502a 100644
--- a/src/intel/common/gen_device_info.h
+++ b/src/intel/common/gen_device_info.h
@@ -28,6 +28,10 @@
 #include <stdbool.h>
 #include <stdint.h>
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /**
  * Intel hardware information and quirks
  */
@@ -198,4 +202,8 @@ struct gen_device_info
 bool gen_get_device_info(int devid, struct gen_device_info *devinfo);
 const char *gen_get_device_name(int devid);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* GEN_DEVICE_INFO_H */
-- 
2.7.4



More information about the mesa-dev mailing list