From f4bad3606db8d6004560e2e37efb1236b741b1ca Mon Sep 17 00:00:00 2001 From: Paul Philippov Date: Mon, 23 Feb 2026 03:13:34 -0500 Subject: [PATCH] fix: guard IMPISPAWBHist declaration for platforms that support it IMPISPAWBHist is not defined in T40/T41 SDK headers. Guard the IMP_ISP_Tuning_GetAwbHist prototype with the same platform condition used at the call site in imp_hal.cpp. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- src/imp_hal.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/imp_hal.hpp b/src/imp_hal.hpp index 0d31cb9..a69b197 100644 --- a/src/imp_hal.hpp +++ b/src/imp_hal.hpp @@ -34,7 +34,10 @@ struct IMPISPEVAttr {}; // Compatibility shims for SDK variants where these prototypes are absent. extern "C" { int IMP_OSD_SetPoolSize(int size); +#if defined(PLATFORM_T20) || defined(PLATFORM_T21) || defined(PLATFORM_T23) || defined(PLATFORM_T30) || \ + defined(PLATFORM_T31) || defined(PLATFORM_C100) int IMP_ISP_Tuning_GetAwbHist(IMPISPAWBHist *awb_hist); +#endif } struct _stream; // fwd decl