Out of curiosity, which compiler/platform are you using? That piece of code is enabled only if a 64-bit integer type is not assumed to exist. Is that indeed the case?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
This seems to be happening when the compiler runs in C89 mode by default. As a workaround, enable the C99 mode (plus the POSIX extensions), e.g. by adding "-std=gnu99" to CFLAGS.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You are correct, thank you for your report.
Out of curiosity, which compiler/platform are you using? That piece of code is enabled only if a 64-bit integer type is not assumed to exist. Is that indeed the case?
I'm running into the same thing
This seems to be happening when the compiler runs in C89 mode by default. As a workaround, enable the C99 mode (plus the POSIX extensions), e.g. by adding "-std=gnu99" to CFLAGS.
Here is also a patch for this: https://sourceforge.net/p/optipng/patches/7/