* (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
#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))
-/* $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.
#endif
#ifdef WIN32
+#ifndef EV_EMBED
#include "misc.h"
#endif
+#endif
/* #define NDEBUG */
#include <stdarg.h>
#include "evdns.h"
-#include "log.h"
#ifdef WIN32
#include <windows.h>
#include <winsock2.h>
#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
return event_base_dispatch (x_cur);
}
-#ifdef EV_STANDALONE
+#ifdef EV_EMBED
void event_set_log_callback (event_log_cb cb)
{
/* nop */
#ifndef _EVENT_H_
#define _EVENT_H_
-#include "ev.h"
+#ifndef EV_EMBED
+# include "ev.h"
+#endif
#ifdef __cplusplus
extern "C" {
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