aboutsummaryrefslogtreecommitdiff
path: root/osc.lv2
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2016-05-30 17:16:51 +0200
committerHanspeter Portner <dev@open-music-kontrollers.ch>2016-05-30 17:16:51 +0200
commit01bad771d4920eea41688b77c7e1e658aa8a3cb0 (patch)
treeb4859a8c7a8bf1cf8980f47457ececec1fcb203c /osc.lv2
parent78df0cd9472bf89457f4c1a79eec33974001b5f5 (diff)
parent0f69bfebd8edf63fe43a6bbc0d9ddea3b62633fe (diff)
downloadmoony.lv2-01bad771d4920eea41688b77c7e1e658aa8a3cb0.tar.xz
Merge commit '0f69bfebd8edf63fe43a6bbc0d9ddea3b62633fe'
Diffstat (limited to 'osc.lv2')
-rw-r--r--osc.lv2/osc.lv2/endian.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/osc.lv2/osc.lv2/endian.h b/osc.lv2/osc.lv2/endian.h
index 99845d0..a7aad4a 100644
--- a/osc.lv2/osc.lv2/endian.h
+++ b/osc.lv2/osc.lv2/endian.h
@@ -74,6 +74,17 @@
# define htole32(x) (x)
# define be32toh(x) ntohl(x)
# define le32toh(x) (x)
+
+# ifndef htonll
+static inline uint64_t htonll(uint64_t n)
+{
+ return (((uint64_t)htonl(n)) << 32) + htonl(n >> 32);
+}
+# endif
+
+# ifndef ntohll
+# define ntohll htonll
+# endif
# define htobe64(x) htonll(x)
# define htole64(x) (x)
@@ -115,4 +126,4 @@
#endif
-#endif \ No newline at end of file
+#endif