diff options
author | root <root> | 2007-11-28 17:32:24 +0000 |
---|---|---|
committer | root <root> | 2007-11-28 17:32:24 +0000 |
commit | 8e8152fabdbc286d50af6cabb52d933ccce7da42 (patch) | |
tree | 9e65161411132918f40eec67c744a0aa5582af3d /ev.c | |
parent | e53306e99926168d590f09e39ec05ad229799811 (diff) |
fucking windows hates iso c, stupid microsoft lock-in strategy
Diffstat (limited to 'ev.c')
-rw-r--r-- | ev.c | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -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 |