Summary: | Ghostscript fails to compile against Android NDK's cdefs.h | ||
---|---|---|---|
Product: | Ghostscript | Reporter: | Peter Cherepanov <sphinx.pinastri> |
Component: | Build Process | Assignee: | Chris Liddell (chrisl) <chris.liddell> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | fred.ross-perry |
Priority: | P4 | ||
Version: | master | ||
Hardware: | Android Tablet | ||
OS: | Android | ||
Customer: | Word Size: | --- | |
Attachments: | Proposed fix patch |
Description
Peter Cherepanov
2020-12-19 06:26:04 UTC
Assigning to Chris as a build issue, but we may have other Android developers take (Fred?). I'm curios as to why gsio.h does #undef printf #define printf Function._printf_.unavailable as opposed to something like #undef printf #define printf(...) (0) In response to Fred: Ghostscript wants use of 'printf' to cause a compile error since we want everything to funnel through dprintf or eprintf so that the stdout and stderr output can be captured by the gs stdio callbacks. Patch applied: https://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=28d3245fbaff Thanks. |