| Summary: | IMG_jpg.c doesn't build with the new libjpeg | ||
|---|---|---|---|
| Product: | SDL_image | Reporter: | fcoelho_9 |
| Component: | misc | Assignee: | Yury G. Kudryashov <urkud> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | API change | ||
| Priority: | P2 | ||
| Version: | unspecified | ||
| Hardware: | x86_64 | ||
| OS: | Windows 7 | ||
| Attachments: |
Diff for libjpeg 8
Fix compilation on Linux |
||
This is in, thanks! http://hg.libsdl.org/SDL_image/rev/b1c1ec3a8d49 Created attachment 708 [details]
Fix compilation on Linux
TRUE was renamed to JPEG_TRUE by mingw port maintainers, not by upstream developers.
So instead of testing for version number one should test whether JPEG_TRUE is defined.
The attached patch is against the latest hg version.
I like this patch, it's in, thanks! http://hg.libsdl.org/SDL_image/rev/e0527402f476 |
Created attachment 599 [details] Diff for libjpeg 8 libjpeg 8 has a different naming scheme for booleans: boolean -> JPEG_boolean FALSE -> JPEG_FALSE TRUE -> JPEG_TRUE I'm building SDL_image with MinGW, attached is a small change I've made to IMG_jpg.c to be able to compile it.