Merge "Bring our <machine/endian.h> files back in sync."
This commit is contained in:
commit
d77c1ec90a
5 changed files with 3 additions and 19 deletions
|
@ -67,11 +67,7 @@
|
|||
|
||||
#endif /* __GNUC__ */
|
||||
|
||||
#if defined(__ARMEB__)
|
||||
#define _BYTE_ORDER _BIG_ENDIAN
|
||||
#else
|
||||
#define _BYTE_ORDER _LITTLE_ENDIAN
|
||||
#endif
|
||||
#define __STRICT_ALIGNMENT
|
||||
#include <sys/types.h>
|
||||
#include <sys/endian.h>
|
||||
|
|
|
@ -29,9 +29,6 @@
|
|||
#ifndef _AARCH64_ENDIAN_H_
|
||||
#define _AARCH64_ENDIAN_H_
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/endian.h>
|
||||
|
||||
#ifdef __GNUC__
|
||||
|
||||
#define __swap16md(x) ({ \
|
||||
|
@ -49,10 +46,8 @@
|
|||
|
||||
#endif /* __GNUC__ */
|
||||
|
||||
#if defined(__AARCH64EB__)
|
||||
#define _BYTE_ORDER _BIG_ENDIAN
|
||||
#else
|
||||
#define _BYTE_ORDER _LITTLE_ENDIAN
|
||||
#endif
|
||||
#include <sys/types.h>
|
||||
#include <sys/endian.h>
|
||||
|
||||
#endif /* _AARCH64_ENDIAN_H_ */
|
||||
|
|
|
@ -58,11 +58,7 @@
|
|||
#endif /* __mips32r2__ */
|
||||
#endif /* __GNUC__ */
|
||||
|
||||
#if defined(__MIPSEB__)
|
||||
#define _BYTE_ORDER _BIG_ENDIAN
|
||||
#else
|
||||
#define _BYTE_ORDER _LITTLE_ENDIAN
|
||||
#endif
|
||||
#define __STRICT_ALIGNMENT
|
||||
#include <sys/types.h>
|
||||
#include <sys/endian.h>
|
||||
|
|
|
@ -58,11 +58,7 @@
|
|||
#endif /* __mips32r2__ */
|
||||
#endif /* __GNUC__ */
|
||||
|
||||
#if defined(__MIPSEB__)
|
||||
#define _BYTE_ORDER _BIG_ENDIAN
|
||||
#else
|
||||
#define _BYTE_ORDER _LITTLE_ENDIAN
|
||||
#endif
|
||||
#define __STRICT_ALIGNMENT
|
||||
#include <sys/types.h>
|
||||
#include <sys/endian.h>
|
||||
|
|
|
@ -56,6 +56,7 @@
|
|||
#endif /* __GNUC__ */
|
||||
|
||||
#define _BYTE_ORDER _LITTLE_ENDIAN
|
||||
#include <sys/types.h>
|
||||
#include <sys/endian.h>
|
||||
|
||||
#endif /* _MACHINE_ENDIAN_H_ */
|
||||
|
|
Loading…
Reference in a new issue