termux-packages/packages/ghostscript/gserrors.h.patch
Henrik Grimler af41dc2143 Enable ghostscript (#1135)
* Fix ghostscript for aarch64.

* ghostscript: fix arm header

* ghostscript: clean build script

* ghostscript: disable i686 and x86_64 for now and enable package!

* Add required build dependencies for ghostscript to setup scripts

* ghostscript: add libexpat as dependency

* ghostscript: add (untested) generated headers for x86_64 and i686
2017-08-11 13:25:55 +02:00

19 lines
494 B
Diff

--- ./base/gserrors.h 2017-03-16 09:20:11.000000000 +0000
+++ ./base/gserrors.h 2017-03-18 21:02:46.586737629 +0000
@@ -148,14 +148,13 @@
*
*/
-#ifndef __printflike
+/* Redefine cdefs.h's __printflike function: */
#if __GNUC__ > 2 || __GNUC__ == 2 && __GNUC_MINOR__ >= 7
#define __printflike(fmtarg, firstvararg) \
__attribute__((__format__ (__printf__, fmtarg, firstvararg)))
#else
#define __printflike(fmtarg, firstvararg)
#endif
-#endif
const char *gs_errstr(int code);