aboutsummaryrefslogtreecommitdiff
path: root/osc.lv2/osc.lv2
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2016-05-30 17:15:55 +0200
committerHanspeter Portner <dev@open-music-kontrollers.ch>2016-05-30 17:15:55 +0200
commit680c108b0e7c498aa48ac22326cbafb6f355de1f (patch)
treeba664129d5f8c0220c26970a38044763fc0d52ae /osc.lv2/osc.lv2
parentea8fe05fc776de202cd780408cebd8997bc125b4 (diff)
parent0f69bfebd8edf63fe43a6bbc0d9ddea3b62633fe (diff)
downloadsynthpod-680c108b0e7c498aa48ac22326cbafb6f355de1f.tar.xz
Merge commit '0f69bfebd8edf63fe43a6bbc0d9ddea3b62633fe'
Diffstat (limited to 'osc.lv2/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 99845d02..a7aad4a8 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