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@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8433>
This commit is contained in:
Pierre-Eric Pelloux-Prayer 2021-01-11 20:37:25 +01:00
parent b83d0b2f5d
commit c4b7a0d61d

View file

@ -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