1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-02 03:20:06 +00:00
JUCE/modules/juce_graphics
taylor.fish e18a62fdf2 Don't try to use nonexistent libpng optimizations
The embedded copy of libpng doesn't contain code for processor-specific
hardware optimizations, but it may still try to use them in some cases,
resulting in linker errors.

juce_PNGLoader.cpp already sets `PNG_ARM_NEON_OPT` to 0 to disable
optimizations on ARM, but this should be done for all architectures,
especially PowerPC, where builds currently fail.

On x86, this isn't strictly necessary, because libpng optimizations are
opt-in for x86, rather than opt-out as with all other architectures, but
for completeness and robustness it is also included here.

The macros to disable optimizations on other platforms come straight
from libpng's own build files; this is how it disables optimizations
when compiled without support for them. `PNG_ARM_NEON_OPT` is already
one of those macros; this commit simply adds the other three.
2024-01-26 17:42:04 -08:00
..
colour Add final specifiers in implementation files 2023-10-10 16:12:38 +01:00
contexts Removed some superfluous consts from definitions 2023-09-20 16:31:10 +01:00
effects Update licensing banners to JUCE 7 2022-05-16 17:55:48 +01:00
fonts Add final specifiers in implementation files 2023-10-10 16:12:38 +01:00
geometry Fix float equality warning in Rectangle::enlargeIfAdjacent() 2023-10-24 18:19:36 +02:00
image_formats Don't try to use nonexistent libpng optimizations 2024-01-26 17:42:04 -08:00
images Add final specifiers in implementation files 2023-10-10 16:12:38 +01:00
native Add final specifiers in implementation files 2023-10-10 16:12:38 +01:00
placement Global: Avoid floating-point equality checks where possible 2023-04-04 19:55:11 +01:00
juce_graphics.cpp Native: Rename all native files for improved consistency 2023-04-04 19:54:29 +01:00
juce_graphics.h Bump version number to 7.0.9 2023-11-20 14:03:35 +00:00
juce_graphics.mm Update licensing banners to JUCE 7 2022-05-16 17:55:48 +01:00