blob: b6bd1d3343ea930353964bed8efdb8cfcb5bcb0c (
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 2013/03/08 20:45:25 adam 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__)
|