summaryrefslogtreecommitdiff
path: root/print/ghostscript/patches/patch-base_gserrors_h
blob: 0e5449c33410dd1f8aba1fb5b5da39bd9709e6b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$NetBSD: patch-base_gserrors_h,v 1.1 2012/10/07 14:19:18 mef Exp $
# This suppresses the noisy warning that __func__ redefined

--- base/gserrors.h.orig	2012-02-08 17:48:48.000000000 +0900
+++ base/gserrors.h	2012-03-24 07:26:35.000000000 +0900
@@ -53,6 +53,9 @@
 #define return_error(err) return gs_note_error(err)
 
 #if !defined(__STDC_VERSION__) || __STDC_VERSION__ < 199901L
+#  if (defined(__func__))
+#    undef __func__
+#  endif
 #  if defined(__GNUC__) && __GNUC__ >= 2
 #    define __func__ __FUNCTION__
 #  elif defined(__FUNCTION__)