| Summary: | [Patch] IMG_png.c fails to compile with libpng 1.5 | ||
|---|---|---|---|
| Product: | SDL_image | Reporter: | Ethan Lee <flibitijibibo> |
| Component: | misc | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | CC: | dfdfdafsjhdgfjhgddhgj |
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | All | ||
| Attachments: | Patch to fix compilation for libpng < 1.6 | ||
|
Description
Ethan Lee
2017-10-24 18:57:29 UTC
It also fails to compile with libsdl 1.2.50. The necessary typedefs are: typedef png_structp png_structrp; typedef png_infop png_inforp; typedef const png_color * png_const_colorp; I'd guess, that those also fix building with 1.5 > It also fails to compile with libsdl 1.2.50.
sry, s/libsdl/libpng/
Created attachment 3095 [details]
Patch to fix compilation for libpng < 1.6
Can confirm that stef's fix works for libpng 1.5 as well. Here's the patch to resolve this issue. (Mind the Parent, this was committed on top of my patch for #3972)
Added, thanks! https://hg.libsdl.org/SDL_image/rev/218eb926ba90 |