Skip to content

Commit 545bfdc

Browse files
committed
chore(bump cython): remove IF
since support for usage of DEF/IF is expected to be removed, IF are remove from code as well.
1 parent 8606cdc commit 545bfdc

2 files changed

Lines changed: 5 additions & 10 deletions

File tree

cyarray/carray.pyx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,8 @@ The numpy array may however be copied and used in any manner.
2929

3030
# For malloc etc.
3131
from libc.stdlib cimport *
32-
IF UNAME_SYSNAME == "Windows":
33-
cdef extern from "msstdint.h" nogil:
34-
ctypedef unsigned int uintptr_t
35-
ELSE:
36-
from libc.stdint cimport uintptr_t
32+
33+
from libc.stdint cimport uintptr_t
3734

3835
cimport numpy as np
3936

cyarray/carray.pyx.mako

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<%
2+
import platform
23
type_info = [
34
('int', 'IntArray', 'NPY_INT'),
45
('unsigned int', 'UIntArray', 'NPY_UINT'),
@@ -37,11 +38,8 @@ The numpy array may however be copied and used in any manner.
3738

3839
# For malloc etc.
3940
from libc.stdlib cimport *
40-
IF UNAME_SYSNAME == "Windows":
41-
cdef extern from "msstdint.h" nogil:
42-
ctypedef unsigned int uintptr_t
43-
ELSE:
44-
from libc.stdint cimport uintptr_t
41+
42+
from libc.stdint cimport uintptr_t
4543

4644
cimport numpy as np
4745

0 commit comments

Comments
 (0)