From 437b24a958434111bd3e203adbbf2b9b2a78aea8 Mon Sep 17 00:00:00 2001 From: Cosmin Truta Date: Wed, 20 Dec 2023 21:09:27 +0200 Subject: [PATCH] mips: Fix the build for generic ANSI C89 compilers The header is a standard C99 header, and a MIPS-specific header, but it is not a standard C89 header. It should not be included until ensuring that the code being compiled is MIPS-specific. --- mips/filter_msa_intrinsics.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mips/filter_msa_intrinsics.c b/mips/filter_msa_intrinsics.c index a57917942..0dab816f2 100644 --- a/mips/filter_msa_intrinsics.c +++ b/mips/filter_msa_intrinsics.c @@ -11,7 +11,6 @@ */ #include -#include #include "../pngpriv.h" #ifdef PNG_READ_SUPPORTED @@ -20,6 +19,7 @@ #if PNG_MIPS_MSA_IMPLEMENTATION == 1 /* intrinsics code from pngpriv.h */ #include +#include /* libpng row pointers are not necessarily aligned to any particular boundary, * however this code will only work with appropriate alignment. mips/mips_init.c