aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2023-02-16 16:58:33 +0000
committerWarner Losh <imp@FreeBSD.org>2023-02-19 03:14:24 +0000
commit0b69409270e47fc90fa7141098c2621e4df1c45c (patch)
treedfb2f01e38542684f213d41b7fe7a706463eb2f3
parent48b109db1edd044a293dea7b77447de3773520c5 (diff)
downloadsrc-0b69409270e47fc90fa7141098c2621e4df1c45c.tar.gz
src-0b69409270e47fc90fa7141098c2621e4df1c45c.zip
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 Approved by: re (cperciva) (cherry picked from commit e35448a901aa56aa232efbc4fe7a73a9bdac3511) (cherry picked from commit a86b9ed22ece362331f44a933bbf5426a06f527a)
-rw-r--r--sys/powerpc/include/endian.h12
1 files changed, 0 insertions, 12 deletions
diff --git a/sys/powerpc/include/endian.h b/sys/powerpc/include/endian.h
index 9e28237bfd24..0fac50361632 100644
--- a/sys/powerpc/include/endian.h
+++ b/sys/powerpc/include/endian.h
@@ -36,18 +36,6 @@
#define _MACHINE_ENDIAN_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>
#endif /* !_MACHINE_ENDIAN_H_ */