diff options
-rw-r--r-- | ev.c | 6 | ||||
-rw-r--r-- | evdns.c | 5 | ||||
-rw-r--r-- | event.c | 6 | ||||
-rw-r--r-- | event.h | 6 |
4 files changed, 15 insertions, 8 deletions
@@ -28,7 +28,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef EV_STANDALONE +#ifndef EV_EMBED # include "config.h" #endif @@ -95,7 +95,9 @@ #define PID_HASHSIZE 16 /* size of pid hash table, must be power of two */ /*#define CLEANUP_INTERVAL 300. /* how often to try to free memory and re-check fds */ -#include "ev.h" +#ifndef EV_EMBED +# include "ev.h" +#endif #if __GNUC__ >= 3 # define expect(expr,value) __builtin_expect ((expr),(value)) @@ -1,4 +1,4 @@ -/* $Id: evdns.c,v 1.7 2007-11-03 20:24:42 root Exp $ */ +/* $Id: evdns.c,v 1.8 2007-11-04 16:52:52 root Exp $ */ /* The original version of this module was written by Adam Langley; for * a history of modifications, check out the subversion logs. @@ -40,8 +40,10 @@ #endif #ifdef WIN32 +#ifndef EV_EMBED #include "misc.h" #endif +#endif /* #define NDEBUG */ @@ -94,7 +96,6 @@ #include <stdarg.h> #include "evdns.h" -#include "log.h" #ifdef WIN32 #include <windows.h> #include <winsock2.h> @@ -34,7 +34,9 @@ #include <sys/time.h> #include <assert.h> -#include "event.h" +#ifndef EV_EMBED +# include "event.h" +#endif #if EV_MULTIPLICITY # define dLOOPev struct ev_loop *loop = (struct ev_loop *)ev->ev_base @@ -110,7 +112,7 @@ int event_dispatch (void) return event_base_dispatch (x_cur); } -#ifdef EV_STANDALONE +#ifdef EV_EMBED void event_set_log_callback (event_log_cb cb) { /* nop */ @@ -31,7 +31,9 @@ #ifndef _EVENT_H_ #define _EVENT_H_ -#include "ev.h" +#ifndef EV_EMBED +# include "ev.h" +#endif #ifdef __cplusplus extern "C" { @@ -121,7 +123,7 @@ int event_base_dispatch (struct event_base *base); int event_base_once (struct event_base *base, int fd, short events, void (*cb)(int, short, void *), void *arg, struct timeval *tv); int event_base_priority_init (struct event_base *base, int fd); -#ifndef EV_STANDALONE +#ifndef EV_EMBED # include "event_compat.h" #endif |