I need access to the uint64_t typedef from stdint.h in some shell code that I am writing and I cannot figure out how to do this. The problem is that from what I can say from the docs, my ctypedef should 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 was not able to figure out how to access this preprocessor definition from Cython, and if I could, Cython did not seem to like ctypedef in if , and when I try to put the if in the cdef block, it seems to confuse it with the declaration. Any ideas? Hope I just missed something really basic.
c python cython
aaronasterling
source share