mirror of
https://git.FreeBSD.org/src.git
synced 2024-10-19 02:29:40 +00:00
powerpc: Drop old workaround for old gcc
Very old versions of gcc defined _BIG_ENDIAN and _LITTLE_ENDIAN. So to work around that, we undefined them here. However, that causes problems for programs that do: (and many other variations on that theme). Since this often is the result of weirdly nested includes in the ports world that are hard to unwind, drop this workaround to help more ports build out of the box. If there's still an issue here (and my testing hasn't shown it), we'll fix the issue in a brand-new way once I have a reproducer. This fixes the mesa-devel build, and others Sponsored by: Netflix Tested by: pkubaj MFC After: 3 days Differential Revision: https://reviews.freebsd.org/D38564
This commit is contained in:
parent
52d984831d
commit
e35448a901
@ -36,18 +36,6 @@
|
|||||||
#define _MACHINE_ENDIAN_H_
|
#define _MACHINE_ENDIAN_H_
|
||||||
|
|
||||||
#include <sys/_types.h>
|
#include <sys/_types.h>
|
||||||
|
|
||||||
/*
|
|
||||||
* GCC defines _BIG_ENDIAN and _LITTLE_ENDIAN equal to __BIG_ENDIAN__
|
|
||||||
* and __LITTLE_ENDIAN__ (resp).
|
|
||||||
*/
|
|
||||||
#ifdef _BIG_ENDIAN
|
|
||||||
#undef _BIG_ENDIAN
|
|
||||||
#endif
|
|
||||||
#ifdef _LITTLE_ENDIAN
|
|
||||||
#undef _LITTLE_ENDIAN
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <sys/_endian.h>
|
#include <sys/_endian.h>
|
||||||
|
|
||||||
#endif /* !_MACHINE_ENDIAN_H_ */
|
#endif /* !_MACHINE_ENDIAN_H_ */
|
||||||
|
Loading…
Reference in New Issue
Block a user