summaryrefslogtreecommitdiffstats
path: root/cython
diff options
context:
space:
mode:
Diffstat (limited to 'cython')
-rw-r--r--cython/Makefile.am3
-rw-r--r--cython/imobiledevice.pxd2
-rw-r--r--cython/stdint.pxi18
3 files changed, 2 insertions, 21 deletions
diff --git a/cython/Makefile.am b/cython/Makefile.am
index ae10b06..64c5c1c 100644
--- a/cython/Makefile.am
+++ b/cython/Makefile.am
@@ -6,9 +6,8 @@ AM_LDFLAGS = $(libgnutls_LIBS) $(libtasn1_LIBS) $(openssl_LIBS) $(libplist_LIBS)
6if HAVE_CYTHON 6if HAVE_CYTHON
7 7
8BUILT_SOURCES = imobiledevice.c 8BUILT_SOURCES = imobiledevice.c
9PXDINCLUDES = imobiledevice.pxd stdint.pxi $(CYTHON_PLIST_INCLUDE_DIR)/plist.pxd 9PXDINCLUDES = imobiledevice.pxd $(CYTHON_PLIST_INCLUDE_DIR)/plist.pxd
10PXIINCLUDES = \ 10PXIINCLUDES = \
11 stdint.pxi \
12 lockdown.pxi \ 11 lockdown.pxi \
13 mobilesync.pxi \ 12 mobilesync.pxi \
14 notification_proxy.pxi \ 13 notification_proxy.pxi \
diff --git a/cython/imobiledevice.pxd b/cython/imobiledevice.pxd
index 3ec8dfb..cd17061 100644
--- a/cython/imobiledevice.pxd
+++ b/cython/imobiledevice.pxd
@@ -1,6 +1,6 @@
1cimport plist 1cimport plist
2 2
3include "stdint.pxi" 3from libc.stdint cimport *
4 4
5cdef extern from "pyerrors.h": 5cdef extern from "pyerrors.h":
6 ctypedef class __builtin__.Exception [object PyBaseExceptionObject]: 6 ctypedef class __builtin__.Exception [object PyBaseExceptionObject]:
diff --git a/cython/stdint.pxi b/cython/stdint.pxi
deleted file mode 100644
index f9e5e95..0000000
--- a/cython/stdint.pxi
+++ /dev/null
@@ -1,18 +0,0 @@
1cdef extern from *:
2 ctypedef unsigned char uint8_t
3 ctypedef short int int16_t
4 ctypedef unsigned short int uint16_t
5 ctypedef unsigned int uint32_t
6 ctypedef int int32_t
7 ctypedef long int time_t
8IF UNAME_MACHINE == 'x86_64':
9 ctypedef long int int64_t
10 ctypedef unsigned long int uint64_t
11ELSE:
12 ctypedef long long int int64_t
13 ctypedef unsigned long long int uint64_t
14
15cdef extern from "time.h":
16 cdef struct timeval:
17 time_t tv_sec
18 time_t tv_usec