Skip to content

Commit

Permalink
Remove noinline keyword added in 4.22 because it breaks windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
jamadden committed Mar 9, 2016
1 parent 35ff8ed commit 278da02
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions libev/ev.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
# undef EV_USE_POLL
# define EV_USE_POLL 0
# endif

# if HAVE_EPOLL_CTL && HAVE_SYS_EPOLL_H
# ifndef EV_USE_EPOLL
# define EV_USE_EPOLL EV_FEATURE_BACKENDS
Expand All @@ -116,7 +116,7 @@
# undef EV_USE_EPOLL
# define EV_USE_EPOLL 0
# endif

# if HAVE_KQUEUE && HAVE_SYS_EVENT_H
# ifndef EV_USE_KQUEUE
# define EV_USE_KQUEUE EV_FEATURE_BACKENDS
Expand All @@ -125,7 +125,7 @@
# undef EV_USE_KQUEUE
# define EV_USE_KQUEUE 0
# endif

# if HAVE_PORT_H && HAVE_PORT_CREATE
# ifndef EV_USE_PORT
# define EV_USE_PORT EV_FEATURE_BACKENDS
Expand Down Expand Up @@ -161,7 +161,7 @@
# undef EV_USE_EVENTFD
# define EV_USE_EVENTFD 0
# endif

#endif

#include <stdlib.h>
Expand Down Expand Up @@ -1941,8 +1941,8 @@ array_nextsize (int elem, int cur, int cnt)

return ncur;
}

static void * noinline ecb_cold
/* gevent: remove noinline, breaks all the appveyor builds */
static void * ecb_cold
array_realloc (int elem, void *base, int *cur, int cnt)
{
*cur = array_nextsize (elem, *cur, cnt);
Expand Down Expand Up @@ -2307,7 +2307,7 @@ downheap (ANHE *heap, int N, int k)

heap [k] = heap [c];
ev_active (ANHE_w (heap [k])) = k;

k = c;
}

Expand Down Expand Up @@ -2727,7 +2727,7 @@ ev_supported_backends (void) EV_THROW
if (EV_USE_EPOLL ) flags |= EVBACKEND_EPOLL;
if (EV_USE_POLL ) flags |= EVBACKEND_POLL;
if (EV_USE_SELECT) flags |= EVBACKEND_SELECT;

return flags;
}

Expand Down Expand Up @@ -5094,4 +5094,3 @@ ev_walk (EV_P_ int types, void (*cb)(EV_P_ int type, void *w)) EV_THROW
#if EV_MULTIPLICITY
#include "ev_wrap.h"
#endif

0 comments on commit 278da02

Please sign in to comment.