diff options
author | François Revol <revol@free.fr> | 2020-08-21 23:00:59 +0200 |
---|---|---|
committer | François Revol <revol@free.fr> | 2020-08-21 23:43:47 +0200 |
commit | 92913621c832ae61a51e55224866b8a1bae305ab (patch) | |
tree | 05ae322085ab1d6ea5901c254b630b87897e414d /deps | |
parent | 49ce5e295b9d95e6bc4084f91706309d1f1f0bb7 (diff) | |
download | libgit2-92913621c832ae61a51e55224866b8a1bae305ab.tar.gz |
deps: ntlmclient: #error out on unknown platforms
We explicitly pass win32 & macOS, although some old version might not
have it.
Diffstat (limited to 'deps')
-rw-r--r-- | deps/ntlmclient/compat.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/deps/ntlmclient/compat.h b/deps/ntlmclient/compat.h index 8093e9e94..6e5ef6466 100644 --- a/deps/ntlmclient/compat.h +++ b/deps/ntlmclient/compat.h @@ -21,7 +21,9 @@ # include <stdbool.h> #endif -#ifdef __linux__ +#if defined(_WIN32) || defined(__APPLE__) +/* winsock and macOS > 10.9 have htonll already */ +#elif defined(__linux__) /* See man page endian(3) */ # include <endian.h> # define htonll htobe64 @@ -49,6 +51,8 @@ #elif defined(__HAIKU__) # include <ByteOrder.h> # define htonll B_HOST_TO_BENDIAN_INT64 +#else +# error "Please implement htonll for your platform" #endif #ifndef MIN |