Update byteswap.h from bionic to match endian.h.
Change-Id: I79e445a167800ce083039d0cb65c5a966d7e6a72
This commit is contained in:
@@ -28,11 +28,10 @@
|
||||
#ifndef _BYTESWAP_H_
|
||||
#define _BYTESWAP_H_
|
||||
|
||||
/* endian.h rather than sys/endian.h so we get the machine-specific file. */
|
||||
#include <endian.h>
|
||||
#include <sys/endian.h>
|
||||
|
||||
#define bswap_16(x) swap16(x)
|
||||
#define bswap_32(x) swap32(x)
|
||||
#define bswap_64(x) swap64(x)
|
||||
#define bswap_16(x) __swap16(x)
|
||||
#define bswap_32(x) __swap32(x)
|
||||
#define bswap_64(x) __swap64(x)
|
||||
|
||||
#endif /* _BYTESWAP_H_ */
|
||||
|
||||
@@ -28,11 +28,10 @@
|
||||
#ifndef _BYTESWAP_H_
|
||||
#define _BYTESWAP_H_
|
||||
|
||||
/* endian.h rather than sys/endian.h so we get the machine-specific file. */
|
||||
#include <endian.h>
|
||||
#include <sys/endian.h>
|
||||
|
||||
#define bswap_16(x) swap16(x)
|
||||
#define bswap_32(x) swap32(x)
|
||||
#define bswap_64(x) swap64(x)
|
||||
#define bswap_16(x) __swap16(x)
|
||||
#define bswap_32(x) __swap32(x)
|
||||
#define bswap_64(x) __swap64(x)
|
||||
|
||||
#endif /* _BYTESWAP_H_ */
|
||||
|
||||
Reference in New Issue
Block a user