I need access to the uint64_t
typedef from stdint.h
in some wrapper code that I'm writing and I can't figure out how to get it done. The problem is that from what I can tell from the docs, my ctypedef
will have to take the form:
ctypedef unsigned long uint64_t
or
ctypedef unsigned long long uint64_t
depending on if WORDSIZE
from bits/wordsize.h
is 64 or 32. I haven't been able to find out out how to get access to this preprocessor definition from Cython and if I could, Cython doesn't seem to like ctypedef
statements in if
statements and when I try to put an if
statement in a cdef
block, it seems to confuse it with a declaration. Any ideas? Hopefully I'm just missing something really basic here.