git.annexia.org
/
hivex.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Include libintl.h to silence warning about bindtextdomain, textdomain.
[hivex.git]
/
lib
/
byte_conversions.h
diff --git
a/lib/byte_conversions.h
b/lib/byte_conversions.h
index
84e9e2d
..
2e4cafe
100644
(file)
--- a/
lib/byte_conversions.h
+++ b/
lib/byte_conversions.h
@@
-18,22
+18,20
@@
#ifdef HAVE_ENDIAN_H
#include <endian.h>
#endif
#ifdef HAVE_ENDIAN_H
#include <endian.h>
#endif
-#ifdef HAVE_BYTESWAP_H
#include <byteswap.h>
#include <byteswap.h>
-#endif
#if __BYTE_ORDER == __LITTLE_ENDIAN
#ifndef be32toh
#if __BYTE_ORDER == __LITTLE_ENDIAN
#ifndef be32toh
-#define be32toh(x)
__
bswap_32 (x)
+#define be32toh(x) bswap_32 (x)
#endif
#ifndef htobe32
#endif
#ifndef htobe32
-#define htobe32(x)
__
bswap_32 (x)
+#define htobe32(x) bswap_32 (x)
#endif
#ifndef be64toh
#endif
#ifndef be64toh
-#define be64toh(x)
__
bswap_64 (x)
+#define be64toh(x) bswap_64 (x)
#endif
#ifndef htobe64
#endif
#ifndef htobe64
-#define htobe64(x)
__
bswap_64 (x)
+#define htobe64(x) bswap_64 (x)
#endif
#ifndef le16toh
#define le16toh(x) (x)
#endif
#ifndef le16toh
#define le16toh(x) (x)
@@
-67,22
+65,22
@@
#define htobe64(x) (x)
#endif
#ifndef le16toh
#define htobe64(x) (x)
#endif
#ifndef le16toh
-#define le16toh(x)
__
bswap_16 (x)
+#define le16toh(x) bswap_16 (x)
#endif
#ifndef htole16
#endif
#ifndef htole16
-#define htole16(x)
__
bswap_16 (x)
+#define htole16(x) bswap_16 (x)
#endif
#ifndef le32toh
#endif
#ifndef le32toh
-#define le32toh(x)
__
bswap_32 (x)
+#define le32toh(x) bswap_32 (x)
#endif
#ifndef htole32
#endif
#ifndef htole32
-#define htole32(x)
__
bswap_32 (x)
+#define htole32(x) bswap_32 (x)
#endif
#ifndef le64toh
#endif
#ifndef le64toh
-#define le64toh(x)
__
bswap_64 (x)
+#define le64toh(x) bswap_64 (x)
#endif
#ifndef htole64
#endif
#ifndef htole64
-#define htole64(x)
__
bswap_64 (x)
+#define htole64(x) bswap_64 (x)
#endif
#endif /* __BYTE_ORDER == __BIG_ENDIAN */
#endif
#endif /* __BYTE_ORDER == __BIG_ENDIAN */