diff options
author | Cosmin Truta <ctruta@gmail.com> | 2023-12-20 21:09:27 +0200 |
---|---|---|
committer | Cosmin Truta <ctruta@gmail.com> | 2023-12-20 21:09:27 +0200 |
commit | 437b24a958434111bd3e203adbbf2b9b2a78aea8 (patch) | |
tree | ba20e8a50b349254f50eebc65148c0ce578413e2 | |
parent | 2ed5a70bca0bcad048171f6784bddf85a6adba54 (diff) | |
download | libpng-437b24a958434111bd3e203adbbf2b9b2a78aea8.tar.gz |
mips: Fix the build for generic ANSI C89 compilers
The <stdint.h> 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.
-rw-r--r-- | mips/filter_msa_intrinsics.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 <stdio.h> -#include <stdint.h> #include "../pngpriv.h" #ifdef PNG_READ_SUPPORTED @@ -20,6 +19,7 @@ #if PNG_MIPS_MSA_IMPLEMENTATION == 1 /* intrinsics code from pngpriv.h */ #include <msa.h> +#include <stdint.h> /* libpng row pointers are not necessarily aligned to any particular boundary, * however this code will only work with appropriate alignment. mips/mips_init.c |