pkgsrc/print/ghostscript-agpl/patches/patch-base_gserrors_h

16 lines
511 B
Text

$NetBSD: patch-base_gserrors_h,v 1.1 2013/03/16 22:25:21 dholland Exp $
This suppresses the noisy warning that __func__ redefined.
--- base/gserrors.h.orig 2013-02-14 07:58:13.000000000 +0000
+++ base/gserrors.h
@@ -60,6 +60,9 @@ int gs_log_error(int, const char *, int)
#endif
#if !defined(__STDC_VERSION__) || __STDC_VERSION__ < 199901L
+# if (defined(__func__))
+# undef __func__
+# endif
# if defined(__GNUC__) && __GNUC__ >= 2
# define __func__ __FUNCTION__
# elif defined(__FUNCTION__)