Fix compilation for listener.h for C++ - missing extern "C". Patch from Ferenc Szalai.

svn:r1448
This commit is contained in:
Niels Provos 2009-10-19 16:20:12 +00:00
parent b812563a6e
commit e1c9b84ae6
2 changed files with 9 additions and 0 deletions

View File

@ -27,6 +27,7 @@ Changes in 2.0.3-alpha:
o When adding or deleting an event from a non-main thread, only wake up the main thread when its behavior actually needs to change. o When adding or deleting an event from a non-main thread, only wake up the main thread when its behavior actually needs to change.
o Fix some bugs when using the old evdns interfaces to initialize the evdns module. o Fix some bugs when using the old evdns interfaces to initialize the evdns module.
o Detect errors during bufferevent_connect(). Patch from Christopher Davis. o Detect errors during bufferevent_connect(). Patch from Christopher Davis.
o Fix compilation for listener.h for C++ - missing extern "C". Patch from Ferenc Szalai.
Changes in 2.0.2-alpha: Changes in 2.0.2-alpha:

View File

@ -27,6 +27,10 @@
#ifndef _EVENT2_LISTENER_H_ #ifndef _EVENT2_LISTENER_H_
#define _EVENT2_LISTENER_H_ #define _EVENT2_LISTENER_H_
#ifdef __cplusplus
extern "C" {
#endif
#include <event2/event.h> #include <event2/event.h>
struct sockaddr; struct sockaddr;
@ -108,4 +112,8 @@ struct event_base *evconnlistener_get_base(struct evconnlistener *lev);
/** Return the socket that an evconnlistner is listening on. */ /** Return the socket that an evconnlistner is listening on. */
evutil_socket_t evconnlistener_get_fd(struct evconnlistener *lev); evutil_socket_t evconnlistener_get_fd(struct evconnlistener *lev);
#ifdef __cplusplus
}
#endif
#endif #endif