summaryrefslogtreecommitdiff
path: root/deps/ntlmclient/compat.h
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2020-10-11 11:41:38 +0100
committerEdward Thomson <ethomson@edwardthomson.com>2020-10-11 11:41:38 +0100
commitd79bb1595ce3678b925da02542bc97f789697d97 (patch)
tree3226bb69405fc59ce97b002e647cc20f09d42a50 /deps/ntlmclient/compat.h
parent2e5f27c7dc81618c185e68a1c6129dd99c69edab (diff)
downloadlibgit2-d79bb1595ce3678b925da02542bc97f789697d97.tar.gz
ntlm: update ntlm dependency for htonllethomson/ntlm_htonll
Update ntlm to include an htonll that is not dependent on system libraries.
Diffstat (limited to 'deps/ntlmclient/compat.h')
-rw-r--r--deps/ntlmclient/compat.h34
1 files changed, 0 insertions, 34 deletions
diff --git a/deps/ntlmclient/compat.h b/deps/ntlmclient/compat.h
index 6e5ef6466..befc7cc4f 100644
--- a/deps/ntlmclient/compat.h
+++ b/deps/ntlmclient/compat.h
@@ -21,40 +21,6 @@
# include <stdbool.h>
#endif
-#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
-#elif defined(__NetBSD__) || defined(__OpenBSD__)
-/* See man page htobe64(3) */
-# include <endian.h>
-# define htonll htobe64
-#elif defined(__FreeBSD__)
-/* See man page bwaps64(9) */
-# include <sys/endian.h>
-# define htonll htobe64
-#elif defined(sun) || defined(__sun)
-/* See man page byteorder(3SOCKET) */
-# include <sys/types.h>
-# include <netinet/in.h>
-# include <inttypes.h>
-
-# if !defined(htonll)
-# if defined(_BIG_ENDIAN)
-# define htonll(x) (x)
-# else
-# define htonll(x) ((((uint64_t)htonl(x)) << 32) + htonl((uint64_t)(x) >> 32))
-# endif
-# endif
-#elif defined(__HAIKU__)
-# include <ByteOrder.h>
-# define htonll B_HOST_TO_BENDIAN_INT64
-#else
-# error "Please implement htonll for your platform"
-#endif
-
#ifndef MIN
# define MIN(x, y) (((x) < (y)) ? (x) : (y))
#endif