We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8e3f882 + 9291362 commit a5eb7e0Copy full SHA for a5eb7e0
deps/ntlmclient/compat.h
@@ -21,7 +21,9 @@
21
# include <stdbool.h>
22
#endif
23
24
-#ifdef __linux__
+#if defined(_WIN32) || defined(__APPLE__)
25
+/* winsock and macOS > 10.9 have htonll already */
26
+#elif defined(__linux__)
27
/* See man page endian(3) */
28
# include <endian.h>
29
# define htonll htobe64
@@ -46,6 +48,11 @@
46
48
# define htonll(x) ((((uint64_t)htonl(x)) << 32) + htonl((uint64_t)(x) >> 32))
47
49
# endif
50
51
+#elif defined(__HAIKU__)
52
+# include <ByteOrder.h>
53
+# define htonll B_HOST_TO_BENDIAN_INT64
54
+#else
55
+# error "Please implement htonll for your platform"
56
57
58
#ifndef MIN
0 commit comments