summaryrefslogtreecommitdiff
path: root/print/ghostscript-agpl/patches/patch-base_gserrors_h
blob: 2f1c71c97b6e7d3b7d3cd3e260d75713e22da2d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
$NetBSD: patch-base_gserrors_h,v 1.2 2022/05/27 08:26:52 adam Exp $

This suppresses the noisy warning that __func__ redefined.

--- base/gserrors.h.orig	2022-04-04 13:48:49.000000000 +0000
+++ base/gserrors.h
@@ -136,6 +136,9 @@ int gs_log_error(int, const char *, int)
 #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__)