New issue 9 by nevion: fails to compile on opensuse 11.3 x86_64
http://code.google.com/p/pylibtiff/issues/detail?id=9
python-numpy-1.3.0-7.1.x86_64
python-2.6.5-2.11.x86_64
Small patch (git format-patch) attached to fix the problem.
Attachments:
0001-fix-for-undef-d-NPY_-BIG-LITTLE-_ENDIAN.patch 1.0 KB
I encountered the same problem too! Apparently numpy does not follow it's
documentation. Grep-ing the numpy headers shows that NPY_*_ENDIAN are
actually used using #ifdefs.
However note: The
patch "0001-fix-for-undef-d-NPY_-BIG-LITTLE-_ENDIAN.patch" that is supplied
here will probably fail to compile on big-endian machines. Particularly,
the line
#elif NPY_BIG_ENDIAN
should probably read
#elif defined(NPY_BIG_ENDIAN)
I have attached another improved patch.
Attachments:
workaround_NPY_ENDIAN_macros.patch 802 bytes
Comment #2 on issue 9 by pearu.peterson: fails to compile on opensuse 11.3
x86_64
http://code.google.com/p/pylibtiff/issues/detail?id=9
Thanks for the patch. It has been applied to SVN.