From 064f992187ac746debb94f3e2f68989e8d0e174f Mon Sep 17 00:00:00 2001 From: gxw Date: Thu, 18 Jan 2024 11:20:51 +0800 Subject: [PATCH] Loongson: Fixed compilation warnings for undefined macros. --- pngpriv.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pngpriv.h b/pngpriv.h index 54a64c497..f2f289f91 100644 --- a/pngpriv.h +++ b/pngpriv.h @@ -204,6 +204,8 @@ # else # define PNG_MIPS_MMI_OPT 0 # endif +# else +# define PNG_MIPS_MMI_OPT 0 # endif #endif @@ -215,6 +217,14 @@ # endif #endif +#ifndef PNG_LOONGARCH_LSX_OPT +# if defined(__loongarch_sx) +# define PNG_LOONGARCH_LSX_OPT 1 +# else +# define PNG_LOONGARCH_LSX_OPT 0 +# endif +#endif + #ifndef PNG_INTEL_SSE_OPT # ifdef PNG_INTEL_SSE /* Only check for SSE if the build configuration has been modified to