mirror of
https://github.com/borgbackup/borg.git
synced 2024-12-22 07:43:06 +00:00
remove _endian.h, not used anymore
This commit is contained in:
parent
ab08eea196
commit
b7035f188b
1 changed files with 0 additions and 30 deletions
|
@ -1,30 +0,0 @@
|
|||
#if !defined(_MSC_VER)
|
||||
# include <unistd.h>
|
||||
#endif
|
||||
#include <stdlib.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#if defined (__SVR4) && defined (__sun)
|
||||
#include <sys/isa_defs.h>
|
||||
#endif
|
||||
|
||||
#if (defined(BYTE_ORDER) && defined(BIG_ENDIAN) && (BYTE_ORDER == BIG_ENDIAN)) || \
|
||||
(defined(__BYTE_ORDER__) && defined(__ORDER_BIG_ENDIAN__) && (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__)) || \
|
||||
(defined(_BIG_ENDIAN) && defined(__SVR4) && defined(__sun))
|
||||
#define BORG_BIG_ENDIAN 1
|
||||
#elif (defined(BYTE_ORDER) && defined(LITTLE_ENDIAN) && (BYTE_ORDER == LITTLE_ENDIAN)) || \
|
||||
(defined(__BYTE_ORDER__) && defined(__ORDER_LITTLE_ENDIAN__) && (__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__)) || \
|
||||
(defined(_LITTLE_ENDIAN) && defined(__SVR4) && defined(__sun)) || \
|
||||
(defined(_MSC_VER) && (defined(_M_AMD64) || defined(_M_IX86)))
|
||||
#define BORG_BIG_ENDIAN 0
|
||||
#else
|
||||
#error Unknown byte order
|
||||
#endif
|
||||
|
||||
#if BORG_BIG_ENDIAN
|
||||
#define _le32toh(x) __builtin_bswap32(x)
|
||||
#define _htole32(x) __builtin_bswap32(x)
|
||||
#else
|
||||
#define _le32toh(x) (x)
|
||||
#define _htole32(x) (x)
|
||||
#endif
|
Loading…
Reference in a new issue