Use endian.h instead of a list of architectures, unbreaks arm.
ok markus@ (maintainer)
This commit is contained in:
parent
4ee32be24f
commit
6f070228ac
@ -1,16 +1,25 @@
|
||||
$OpenBSD: patch-bytesex_h,v 1.2 2012/08/21 08:25:03 landry Exp $
|
||||
--- bytesex.h.orig Tue Mar 13 06:46:18 2001
|
||||
+++ bytesex.h Tue Aug 21 02:24:11 2012
|
||||
@@ -4,10 +4,12 @@
|
||||
$OpenBSD: patch-bytesex_h,v 1.3 2016/12/30 23:14:37 jca Exp $
|
||||
|
||||
Use endian.h instead of whitelisting platforms.
|
||||
|
||||
--- bytesex.h.orig Tue Mar 13 14:46:18 2001
|
||||
+++ bytesex.h Fri Dec 30 19:05:26 2016
|
||||
@@ -3,15 +3,10 @@
|
||||
#ifndef S10SH_BYTESEX_H
|
||||
#define S10SH_BYTESEX_H
|
||||
|
||||
#if defined(__i386__) \
|
||||
+ || defined(__amd64__) \
|
||||
|| defined(__alpha__) \
|
||||
|| (defined(__mips__) && (defined(MIPSEL) || defined (__MIPSEL__)))
|
||||
-#if defined(__i386__) \
|
||||
- || defined(__alpha__) \
|
||||
- || (defined(__mips__) && (defined(MIPSEL) || defined (__MIPSEL__)))
|
||||
+#include <endian.h>
|
||||
+#if BYTE_ORDER == LITTLE_ENDIAN
|
||||
#define BYTE_ORDER_LITTLE_ENDIAN
|
||||
#elif defined(__mc68000__) \
|
||||
+ || defined (__hppa__) \
|
||||
|| defined (__sparc__) \
|
||||
|| defined (__sparc) \
|
||||
|| defined (__PPC__) \
|
||||
-#elif defined(__mc68000__) \
|
||||
- || defined (__sparc__) \
|
||||
- || defined (__sparc) \
|
||||
- || defined (__PPC__) \
|
||||
- || (defined(__mips__) && (defined(MIPSEB) || defined (__MIPSEB__)))
|
||||
+#elif BYTE_ORDER == BIG_ENDIAN
|
||||
#define BYTE_ORDER_BIG_ENDIAN
|
||||
#else
|
||||
# error can not find the byte order for this architecture, fix bytesex.h
|
||||
|
Loading…
x
Reference in New Issue
Block a user