Commit 95c04fdb authored by Denis Bilenko's avatar Denis Bilenko

core.ppyx: do not depend on EV_CHILD_ENABLE

it's always the opposite of _WIN32
this speeds up cythonpp.py part of the build
parent 214aa5d4
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
DEFINE_CALLBACK(stat, Stat); DEFINE_CALLBACK(stat, Stat);
#if EV_CHILD_ENABLE #ifndef _WIN32
#define DEFINE_CALLBACKS \ #define DEFINE_CALLBACKS \
DEFINE_CALLBACKS0 \ DEFINE_CALLBACKS0 \
......
...@@ -417,7 +417,8 @@ cdef public class loop [object PyGeventLoopObject, type PyGeventLoop_Type]: ...@@ -417,7 +417,8 @@ cdef public class loop [object PyGeventLoopObject, type PyGeventLoop_Type]:
def async(self, ref=True, priority=None): def async(self, ref=True, priority=None):
return async(self, ref, priority) return async(self, ref, priority)
#if EV_CHILD_ENABLE #ifdef _WIN32
#else
def child(self, int pid, bint trace=0, ref=True): def child(self, int pid, bint trace=0, ref=True):
return child(self, pid, trace, ref) return child(self, pid, trace, ref)
...@@ -843,7 +844,8 @@ cdef public class async(watcher) [object PyGeventAsyncObject, type PyGeventAsync ...@@ -843,7 +844,8 @@ cdef public class async(watcher) [object PyGeventAsyncObject, type PyGeventAsync
def send(self): def send(self):
libev.ev_async_send(self.loop._ptr, &self._watcher) libev.ev_async_send(self.loop._ptr, &self._watcher)
#if EV_CHILD_ENABLE #ifdef _WIN32
#else
cdef public class child(watcher) [object PyGeventChildObject, type PyGeventChild_Type]: cdef public class child(watcher) [object PyGeventChildObject, type PyGeventChild_Type]:
......
...@@ -3,13 +3,13 @@ ...@@ -3,13 +3,13 @@
#else #else
#include "ev.h" #include "ev.h"
#if EV_CHILD_ENABLE #ifndef _WIN32
#include <signal.h> #include <signal.h>
#endif #endif
#endif #endif
#if EV_CHILD_ENABLE #ifndef _WIN32
static struct sigaction libev_sigchld; static struct sigaction libev_sigchld;
static int sigchld_state = 0; static int sigchld_state = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment