zfp
zfp copied to clipboard
Cython does not recognize ptrdiff_t
Some versions of Cython do not recognize ptrdiff_t, causing compilation to fail:
Error compiling Cython file:
------------------------------------------------------------
...
# structs
ctypedef struct zfp_field:
zfp_type _type "type"
size_t nx, ny, nz, nw
ptrdiff_t sx, sy, sz, sw
^
------------------------------------------------------------
python/zfpy.pxd:31:8: 'ptrdiff_t' is not a type identifier
Evidently, this type needs to be explicitly imported from libc.stddef.