Skip to content

Commit 9291362

Browse files
committed
deps: ntlmclient: #error out on unknown platforms
We explicitly pass win32 & macOS, although some old version might not have it.
1 parent 49ce5e2 commit 9291362

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

deps/ntlmclient/compat.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@
2121
# include <stdbool.h>
2222
#endif
2323

24-
#ifdef __linux__
24+
#if defined(_WIN32) || defined(__APPLE__)
25+
/* winsock and macOS > 10.9 have htonll already */
26+
#elif defined(__linux__)
2527
/* See man page endian(3) */
2628
# include <endian.h>
2729
# define htonll htobe64
@@ -49,6 +51,8 @@
4951
#elif defined(__HAIKU__)
5052
# include <ByteOrder.h>
5153
# define htonll B_HOST_TO_BENDIAN_INT64
54+
#else
55+
# error "Please implement htonll for your platform"
5256
#endif
5357

5458
#ifndef MIN

0 commit comments

Comments
 (0)