summaryrefslogtreecommitdiff
path: root/libgphoto2_port
diff options
context:
space:
mode:
authorHans Ulrich Niedermann <hun@n-dimensional.de>2021-10-12 22:13:20 +0200
committerHans Ulrich Niedermann <hun@n-dimensional.de>2021-10-19 05:13:12 +0200
commitbb625e03ea0c79426c6ffdceaee8b9513c5d8caa (patch)
tree2106f69728a8f5973378913574b51e66f54ba297 /libgphoto2_port
parenta2edf33210799af6b6b3edffb0871ab626932b7c (diff)
downloadlibgphoto2-bb625e03ea0c79426c6ffdceaee8b9513c5d8caa.tar.gz
Sync gp-byteorder.m4, supporting 64bit values
Diffstat (limited to 'libgphoto2_port')
-rw-r--r--libgphoto2_port/gphoto-m4/gp-byteorder.m44
1 files changed, 4 insertions, 0 deletions
diff --git a/libgphoto2_port/gphoto-m4/gp-byteorder.m4 b/libgphoto2_port/gphoto-m4/gp-byteorder.m4
index d8eeabda3..2f2ce0be4 100644
--- a/libgphoto2_port/gphoto-m4/gp-byteorder.m4
+++ b/libgphoto2_port/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)