Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / print / ghostscript / patches / patch-base_gserrors_h
blob9e5ffdd1df3a6ffb8fd33de580c4ecc6fccd0461
1 $NetBSD: patch-base_gserrors_h,v 1.1 2012/10/07 14:19:18 mef Exp $
3 This suppresses the noisy warning that __func__ redefined.
5 --- base/gserrors.h.orig        2013-02-14 07:58:13.000000000 +0000
6 +++ base/gserrors.h
7 @@ -60,6 +60,9 @@ int gs_log_error(int, const char *, int)
8  #endif
9  
10  #if !defined(__STDC_VERSION__) || __STDC_VERSION__ < 199901L
11 +#  if (defined(__func__))
12 +#    undef __func__
13 +#  endif
14  #  if defined(__GNUC__) && __GNUC__ >= 2
15  #    define __func__ __FUNCTION__
16  #  elif defined(__FUNCTION__)