summaryrefslogtreecommitdiff
path: root/util-internal.h
diff options
context:
space:
mode:
authorAzat Khuzhin <a3at.mail@gmail.com>2016-12-06 12:08:32 +0300
committerAzat Khuzhin <a3at.mail@gmail.com>2016-12-06 12:54:33 +0300
commit253e7fa90caf3cfc5314f47bac0fd9d98cd9e651 (patch)
treeb8e5b9a072a1bfb74be16791233a301ceba12642 /util-internal.h
parent2c62062e126913657ac52b56c2ec865f5c695f75 (diff)
downloadlibevent-253e7fa90caf3cfc5314f47bac0fd9d98cd9e651.tar.gz
util-internal: fix __func__ redefinition (netbsd)
==> netbsd: In file included from ../listener.c:57:0: ==> netbsd: ../util-internal.h:58:0: warning: "__func__" redefined [enabled by default] ==> netbsd: #define __func__ EVENT____func__ ==> netbsd: ^ ==> netbsd: In file included from /usr/include/amd64/types.h:39:0, ==> netbsd: from /usr/include/sys/types.h:45, ==> netbsd: from ../listener.c:30: ==> netbsd: /usr/include/sys/cdefs.h:394:0: note: this is the location of the previous definition ==> netbsd: #define __func__ __PRETTY_FUNCTION__
Diffstat (limited to 'util-internal.h')
-rw-r--r--util-internal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/util-internal.h b/util-internal.h
index b851e2ae..38d0f595 100644
--- a/util-internal.h
+++ b/util-internal.h
@@ -54,7 +54,7 @@ extern "C" {
#ifdef EVENT__inline
#define inline EVENT__inline
#endif
-#ifdef EVENT____func__
+#if defined(EVENT____func__) && !defined(__func__)
#define __func__ EVENT____func__
#endif