diff options
Diffstat (limited to 'cython/stdint.pxi')
| -rw-r--r-- | cython/stdint.pxi | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cython/stdint.pxi b/cython/stdint.pxi index 2617dec..f9e5e95 100644 --- a/cython/stdint.pxi +++ b/cython/stdint.pxi | |||
| @@ -4,9 +4,15 @@ cdef extern from *: | |||
| 4 | ctypedef unsigned short int uint16_t | 4 | ctypedef unsigned short int uint16_t |
| 5 | ctypedef unsigned int uint32_t | 5 | ctypedef unsigned int uint32_t |
| 6 | ctypedef int int32_t | 6 | ctypedef int int32_t |
| 7 | ctypedef long int time_t | ||
| 7 | IF UNAME_MACHINE == 'x86_64': | 8 | IF UNAME_MACHINE == 'x86_64': |
| 8 | ctypedef long int int64_t | 9 | ctypedef long int int64_t |
| 9 | ctypedef unsigned long int uint64_t | 10 | ctypedef unsigned long int uint64_t |
| 10 | ELSE: | 11 | ELSE: |
| 11 | ctypedef long long int int64_t | 12 | ctypedef long long int int64_t |
| 12 | ctypedef unsigned long long int uint64_t | 13 | ctypedef unsigned long long int uint64_t |
| 14 | |||
| 15 | cdef extern from "time.h": | ||
| 16 | cdef struct timeval: | ||
| 17 | time_t tv_sec | ||
| 18 | time_t tv_usec | ||
