added missing htole64

fixes https://github.com/gphoto/libgphoto2/issues/244
This commit is contained in:
Marcus Meissner
2018-03-30 09:07:53 +02:00
parent 003e8c798a
commit 7defb18f43

View File

@@ -272,6 +272,9 @@ EOF
#ifndef htole32
# define htole32(x) swap32(x)
#endif
#ifndef htole64
# define htole64(x) swap64(x)
#endif
#ifndef le16toh
# define le16toh(x) swap16(x)
#endif
@@ -291,6 +294,7 @@ EOF
#define HTOLE16(x) (x) = htole16(x)
#define HTOLE32(x) (x) = htole32(x)
#define HTOLE64(x) (x) = htole64(x)
#define LE16TOH(x) (x) = le16toh(x)
#define LE32TOH(x) (x) = le32toh(x)
#define LE64TOH(x) (x) = le64toh(x)