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 *: ctypedef unsigned short int uint16_t ctypedef unsigned int uint32_t ctypedef int int32_t + ctypedef long int time_t IF UNAME_MACHINE == 'x86_64': ctypedef long int int64_t ctypedef unsigned long int uint64_t ELSE: ctypedef long long int int64_t ctypedef unsigned long long int uint64_t + +cdef extern from "time.h": + cdef struct timeval: + time_t tv_sec + time_t tv_usec |