From: Kevin Rogovin <kevin.rogo...@intel.com> Signed-off-by: Kevin Rogovin <kevin.rogo...@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 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev