diff options
| author | 2010-03-16 03:40:55 -0500 | |
|---|---|---|
| committer | 2012-03-20 23:25:54 +0100 | |
| commit | fd3f9219f4e7178435f312300f933abe25608cf3 (patch) | |
| tree | d41f4e184fca3da70a4bb44a0eee39dab32b5350 /cython/stdint.pxi | |
| parent | 69f518d3a4b249daab850b08a376adbbf6636a8e (diff) | |
| download | libimobiledevice-fd3f9219f4e7178435f312300f933abe25608cf3.tar.gz libimobiledevice-fd3f9219f4e7178435f312300f933abe25608cf3.tar.bz2 | |
Added cython bindings.
Diffstat (limited to 'cython/stdint.pxi')
| -rw-r--r-- | cython/stdint.pxi | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/cython/stdint.pxi b/cython/stdint.pxi new file mode 100644 index 0000000..518c3d1 --- /dev/null +++ b/cython/stdint.pxi | |||
| @@ -0,0 +1,10 @@ | |||
| 1 | cdef extern from "stdint.h": | ||
| 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 | IF UNAME_MACHINE == 'x86_64': | ||
| 8 | ctypedef unsigned long int uint64_t | ||
| 9 | ELSE: | ||
| 10 | ctypedef unsigned long long int uint64_t | ||
