[issue16166] Add PY_BYTE_ORDER macro to get endianess of platform
Serhiy Storchaka
report at bugs.python.org
Tue Oct 9 20:51:07 CEST 2012
Serhiy Storchaka added the comment:
Usually you need code for both alternatives.
#ifdef WORDS_BIGENDIAN
...
#else
...
#endif
What can be simpler? Of cause, using *two* macros is complicated. You need
only one and second macros is unnecessary.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16166>
_______________________________________
More information about the Python-bugs-list
mailing list