summaryrefslogtreecommitdiff
path: root/ev.c
diff options
context:
space:
mode:
authorroot <root>2007-11-28 17:32:24 +0000
committerroot <root>2007-11-28 17:32:24 +0000
commit8e8152fabdbc286d50af6cabb52d933ccce7da42 (patch)
tree9e65161411132918f40eec67c744a0aa5582af3d /ev.c
parente53306e99926168d590f09e39ec05ad229799811 (diff)
fucking windows hates iso c, stupid microsoft lock-in strategy
Diffstat (limited to 'ev.c')
-rw-r--r--ev.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/ev.c b/ev.c
index f8b08f5..5383e2c 100644
--- a/ev.c
+++ b/ev.c
@@ -283,22 +283,22 @@ syserr (const char *msg)
}
}
-static void *(*alloc)(void *ptr, size_t size) = realloc;
+static void *(*alloc)(void *ptr, long size);
void
-ev_set_allocator (void *(*cb)(void *ptr, size_t size))
+ev_set_allocator (void *(*cb)(void *ptr, long size))
{
alloc = cb;
}
inline_speed void *
-ev_realloc (void *ptr, size_t size)
+ev_realloc (void *ptr, long size)
{
- ptr = alloc (ptr, size);
+ ptr = alloc ? alloc (ptr, size) : realloc (ptr, size);
if (!ptr && size)
{
- fprintf (stderr, "libev: cannot allocate %ld bytes, aborting.", (long)size);
+ fprintf (stderr, "libev: cannot allocate %ld bytes, aborting.", size);
abort ();
}
@@ -326,12 +326,12 @@ typedef struct
int events;
} ANPENDING;
+#if EV_USE_INOTIFY
typedef struct
{
-#if EV_USE_INOTIFY
WL head;
-#endif
} ANFS;
+#endif
#if EV_MULTIPLICITY