1
0
mirror of https://github.com/termux/termux-packages synced 2024-06-25 00:27:09 +00:00
termux-packages/packages/ghostscript/base-gserrors.h.patch
2022-11-23 05:01:39 +00:00

20 lines
515 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,14 @@
*
*/
-#ifndef __printflike
+/* Redefine cdefs.h's __printflike function: */
+#undef __printflike
#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);