endian.h uses bad macros for _BIG_ENDIAN
On the SPARC build it was observed that the endian.h changes were breaking. This is due to a bad use of the pre-processor. In the else cases for _BIG_ENDIAN we incorrectly use a
#elif _BIG_ENDIAN without correctly asking it it's defined. This changes all the use of the pre-processor bits in endian.h and its tests to use defined().
Updated by Electric Monk almost 4 years ago
- Status changed from New to Closed
commit cc366bfc297550eb10cd5f677d98c8d206eca4f1 Author: Robert Mustacchi <firstname.lastname@example.org> Date: 2016-07-22T16:02:18.000Z 7038 users of endian.h expect __ prefixed versions of macros 7043 endian.h uses bad macros for _BIG_ENDIAN Reviewed by: Igor Kozhukhov <email@example.com> Reviewed by: Richard PALO <firstname.lastname@example.org> Approved by: Dan McDonald <email@example.com>