will also not define any of the structs usually found in "event.h"
that are not directly supported by libev code alone.
+ EV_H
+
+ The name of the ev.h header file used to include it. The default
+ if undefined is <ev.h> in event.h and "ev.h" in ev.c. This can be used
+ to virtually rename the ev.h header file
+
EV_USE_MONOTONIC
If undefined or defined to be "1", libev will try to detect the
#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"
+#ifdef EV_H
+# include EV_H
+#else
+# include "ev.h"
+#endif
#if __GNUC__ >= 3
# define expect(expr,value) __builtin_expect ((expr),(value))
# include <sys/time.h>
#endif
-#include "ev.h"
-#include "event.h"
+#ifdef EV_EVENT_H
+# include EV_EVENT_H
+#else
+# include "event.h"
+#endif
#if EV_MULTIPLICITY
# define dLOOPev struct ev_loop *loop = (struct ev_loop *)ev->ev_base
#ifndef _EVENT_H_
#define _EVENT_H_
-#include <ev.h>
+#ifdef EV_H
+# include EV_H
+#else
+# include <ev.h>
+#endif
#ifdef __cplusplus
extern "C" {
#endif
+struct event_base;
+
struct event
{
/* libev watchers we map onto */
int event_priority_init (int npri);
int event_priority_set (struct event *ev, int pri);
-struct event_base;
-
int event_base_set (struct event_base *base, struct event *ev);
int event_base_loop (struct event_base *base, int);
int event_base_loopexit (struct event_base *base, struct timeval *tv);