diff options
author | Azat Khuzhin <azat@libevent.org> | 2019-03-25 01:41:09 +0300 |
---|---|---|
committer | Azat Khuzhin <azat@libevent.org> | 2019-03-25 09:48:40 +0300 |
commit | b8e2f01690c07f7b6eb29d097b30c1640fc9612e (patch) | |
tree | 08e0679ceab26682a43dff6787369d05b444e0e9 /signal.c | |
parent | 8a674243b444da9e0742ac837334aaf38e6a703a (diff) | |
download | libevent-b8e2f01690c07f7b6eb29d097b30c1640fc9612e.tar.gz |
signal: guard __cdecl definition with #ifdef
Under mingw64:
../signal.c:88:0: warning: "__cdecl" redefined
#define __cdecl
<built-in>: note: this is the location of the previous definition
https://ci.appveyor.com/project/azat/libevent/builds/23321613#L427
Diffstat (limited to 'signal.c')
-rw-r--r-- | signal.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -85,8 +85,10 @@ #ifndef _WIN32 /* Windows wants us to call our signal handlers as __cdecl. Nobody else * expects you to do anything crazy like this. */ +#ifndef __cdecl #define __cdecl #endif +#endif static int evsig_add(struct event_base *, evutil_socket_t, short, short, void *); static int evsig_del(struct event_base *, evutil_socket_t, short, short, void *); |