We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a6ebf30 commit b8e5b0cCopy full SHA for b8e5b0c
1 file changed
src/cloudsync.c
@@ -36,10 +36,15 @@
36
#define htonll(x) (x)
37
#define ntohll(x) (x)
38
#else
39
+#ifndef htobe64
40
+#define htonll(x) ((uint64_t)htonl((x) & 0xFFFFFFFF) << 32 | (uint64_t)htonl((x) >> 32))
41
+#define ntohll(x) ((uint64_t)ntohl((x) & 0xFFFFFFFF) << 32 | (uint64_t)ntohl((x) >> 32))
42
+#else
43
#define htonll(x) htobe64(x)
44
#define ntohll(x) be64toh(x)
45
#endif
46
47
+#endif
48
49
#ifndef CLOUDSYNC_OMIT_NETWORK
50
#include "network.h"
0 commit comments