diff options
author | Azat Khuzhin <a3at.mail@gmail.com> | 2016-12-06 12:08:32 +0300 |
---|---|---|
committer | Azat Khuzhin <a3at.mail@gmail.com> | 2016-12-06 12:54:33 +0300 |
commit | 253e7fa90caf3cfc5314f47bac0fd9d98cd9e651 (patch) | |
tree | b8e5b9a072a1bfb74be16791233a301ceba12642 /event_rpcgen.py | |
parent | 2c62062e126913657ac52b56c2ec865f5c695f75 (diff) | |
download | libevent-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 'event_rpcgen.py')
-rwxr-xr-x | event_rpcgen.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/event_rpcgen.py b/event_rpcgen.py index c5375656..9baf7302 100755 --- a/event_rpcgen.py +++ b/event_rpcgen.py @@ -1585,7 +1585,7 @@ class CCodeGenerator: '#include <event2/event.h>\n' '#include <event2/buffer.h>\n' '#include <event2/tag.h>\n\n' - '#ifdef EVENT____func__\n' + '#if defined(EVENT____func__) && !defined(__func__)\n' '#define __func__ EVENT____func__\n' '#endif\n\n' ) |