diff --git a/src/broadcom/common/v3d_device_info.h b/src/broadcom/common/v3d_device_info.h index 4c3839f104e..c543af5dea1 100644 --- a/src/broadcom/common/v3d_device_info.h +++ b/src/broadcom/common/v3d_device_info.h @@ -27,6 +27,10 @@ #include #include +#ifdef __cplusplus +extern "C" { +#endif + /** * Struct for tracking features of the V3D chip across driver and compiler. */ @@ -93,4 +97,8 @@ v3d_device_has_unpack_max0(const struct v3d_device_info *devinfo) (devinfo->rev == 6 && devinfo->compat_rev >= 4))); } +#ifdef __cplusplus +} +#endif + #endif