diff options
author | Marcus Meissner <marcus@jet.franken.de> | 2018-03-30 09:07:53 +0200 |
---|---|---|
committer | Marcus Meissner <marcus@jet.franken.de> | 2018-03-30 09:07:53 +0200 |
commit | 7defb18f437733c2bc594436e0a2cd9cdeb145f7 (patch) | |
tree | 009d9a979bc4f91f3d49bac2e5d9628bb488c137 /gphoto-m4 | |
parent | 003e8c798a084042ccf2f3a4104bb11d82d7b1ff (diff) | |
download | libgphoto2-7defb18f437733c2bc594436e0a2cd9cdeb145f7.tar.gz |
added missing htole64
fixes https://github.com/gphoto/libgphoto2/issues/244
Diffstat (limited to 'gphoto-m4')
-rw-r--r-- | gphoto-m4/gp-byteorder.m4 | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gphoto-m4/gp-byteorder.m4 b/gphoto-m4/gp-byteorder.m4 index cd4ed0d39..bf90bc707 100644 --- a/gphoto-m4/gp-byteorder.m4 +++ b/gphoto-m4/gp-byteorder.m4 @@ -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) |