From 330c0dbfd599a2d924b97d972bd8501ba9b3d751 Mon Sep 17 00:00:00 2001 From: Sun Haiyong Date: Fri, 23 Oct 2026 10:06:40 +0800 Subject: [PATCH] core: Add the missing `` include to intrin_lsx.hpp. When compiling with GCC 16.2.0, I encountered the following error: modules/core/include/opencv2/core/hal/intrin_forward.hpp:204:49: error: 'INT_MAX' was not declared in this scope 204 | SV32 sat = v_xor(v_shr<31>(hi), SETALL_S32(INT_MAX)); \ --- modules/core/include/opencv2/core/hal/intrin_lsx.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/core/include/opencv2/core/hal/intrin_lsx.hpp b/modules/core/include/opencv2/core/hal/intrin_lsx.hpp index 8b5831b3c6..4e02f0d5ff 100644 --- a/modules/core/include/opencv2/core/hal/intrin_lsx.hpp +++ b/modules/core/include/opencv2/core/hal/intrin_lsx.hpp @@ -6,6 +6,7 @@ #define OPENCV_HAL_INTRIN_LSX_HPP #include +#include #define CV_SIMD128 1 #define CV_SIMD128_64F 1