From fadcea80c0fc7a7ab50fd442c26cc3117a7a4f74 Mon Sep 17 00:00:00 2001 From: Christian Gmeiner Date: Thu, 10 Oct 2024 11:53:31 +0200 Subject: [PATCH] broadcom/common: Make v3d_device_info.h usable for C++ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We need it for our pps ds. Signed-off-by: Christian Gmeiner Reviewed-by: MaĆ­ra Canal Part-of: --- src/broadcom/common/v3d_device_info.h | 8 ++++++++ 1 file changed, 8 insertions(+) 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