Mesa (master): ac: add ifdef __cplusplus guard to header

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Jan 14 10:02:09 UTC 2021


Module: Mesa
Branch: master
Commit: c4b7a0d61d62a4c7f6e995fa49c56c8ab665f2da
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=c4b7a0d61d62a4c7f6e995fa49c56c8ab665f2da

Author: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer at amd.com>
Date:   Mon Jan 11 20:37:25 2021 +0100

ac: add ifdef __cplusplus guard to header

ac_shadowed_regs.h can be included from si_state_draw.cpp so this commit
adds the needed guards.

Reviewed-by: Marek Olšák <marek.olsak at amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8433>

---

 src/amd/common/ac_shadowed_regs.h | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/src/amd/common/ac_shadowed_regs.h b/src/amd/common/ac_shadowed_regs.h
index df2a7b72fc4..8a183927177 100644
--- a/src/amd/common/ac_shadowed_regs.h
+++ b/src/amd/common/ac_shadowed_regs.h
@@ -47,6 +47,10 @@ enum ac_reg_range_type
    SI_NUM_ALL_REG_RANGES,
 };
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 typedef void (*set_context_reg_seq_array_fn)(struct radeon_cmdbuf *cs, unsigned reg, unsigned num,
                                              const uint32_t *values);
 
@@ -59,4 +63,9 @@ void ac_check_shadowed_regs(enum chip_class chip_class, enum radeon_family famil
                             unsigned reg_offset, unsigned count);
 void ac_print_shadowed_regs(const struct radeon_info *info);
 
+#ifdef __cplusplus
+}
+#endif
+
+
 #endif



More information about the mesa-commit mailing list