summaryrefslogtreecommitdiff
path: root/print/ghostscript-gpl/patches/patch-base_gserrors_h
blob: 9c28a432d298932f7e4eec4052dc5623b619806c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$NetBSD: patch-base_gserrors_h,v 1.1 2013/03/16 21:32:01 dholland 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__)