summaryrefslogtreecommitdiff
path: root/print/ghostscript-agpl/patches/patch-base_gserrors_h
diff options
context:
space:
mode:
Diffstat (limited to 'print/ghostscript-agpl/patches/patch-base_gserrors_h')
-rw-r--r--print/ghostscript-agpl/patches/patch-base_gserrors_h16
1 files changed, 16 insertions, 0 deletions
diff --git a/print/ghostscript-agpl/patches/patch-base_gserrors_h b/print/ghostscript-agpl/patches/patch-base_gserrors_h
new file mode 100644
index 00000000000..4ead80f2ffa
--- /dev/null
+++ b/print/ghostscript-agpl/patches/patch-base_gserrors_h
@@ -0,0 +1,16 @@
+$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__)