Commit b257a00
committed
Make sdists created on Linux compatible with other OSes
Cython doesn't compile 'IF SYSTEM_UNAME' checks into appropriate
C checks like '#ifdef __linux__'. Instead it evaluates the constant
at the build time, meaning that
IF SYSTEM_UNAME == 'Linux':
cdef extern from "sys/epoll.h":
...
will be compiled to simple "include <sys/epoll.h>" (unguarded) on
Linux, meaning that the result C file won't compile on other OSes.
This commit moves the platform check to compat.h.1 parent 76ed636 commit b257a00
3 files changed
+23
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
65 | 69 | | |
66 | 70 | | |
67 | 71 | | |
| |||
71 | 75 | | |
72 | 76 | | |
73 | 77 | | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
66 | | - | |
67 | 65 | | |
68 | | - | |
69 | | - | |
70 | | - | |
| 66 | + | |
| 67 | + | |
71 | 68 | | |
72 | | - | |
73 | | - | |
74 | | - | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
75 | 72 | | |
76 | | - | |
77 | | - | |
| 73 | + | |
| 74 | + | |
0 commit comments