From 0f5e1f3b68eb68c257eb45b72650e8a653451a1d Mon Sep 17 00:00:00 2001 From: Chris Young Date: Thu, 7 Jun 2012 21:56:19 +0100 Subject: Network byte order is big-endian - the way it should be :) --- include/git2/common.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/git2/common.h') diff --git a/include/git2/common.h b/include/git2/common.h index 0e9379804..4e6c2a57e 100644 --- a/include/git2/common.h +++ b/include/git2/common.h @@ -55,6 +55,14 @@ #define GIT_WIN32 1 #endif +#ifdef __amigaos4__ +/* Network byte order is big-endian... so is PPC, so these functions are NOP */ +#define htonl(x) x +#define ntohl(x) x +#define htons(x) x +#define ntohs(x) x +#endif + /** * @file git2/common.h * @brief Git common platform definitions -- cgit v1.2.1 From aa5a92d121d4fcc56d9661ce1c76534b410784c7 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Fri, 8 Jun 2012 18:57:35 +0100 Subject: OS4 compatibility --- include/git2/common.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/git2/common.h') diff --git a/include/git2/common.h b/include/git2/common.h index 4e6c2a57e..b692c67e2 100644 --- a/include/git2/common.h +++ b/include/git2/common.h @@ -107,6 +107,8 @@ GIT_EXTERN(int) git_strarray_copy(git_strarray *tgt, const git_strarray *src); */ GIT_EXTERN(void) git_libgit2_version(int *major, int *minor, int *rev); +GIT_EXTERN(int) p_fnmatch(const char *pattern, const char *string, int flags); + /** @} */ GIT_END_DECL #endif -- cgit v1.2.1 From fa56478fb8d5e19d64bf43b51372ab3315cb1884 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Fri, 8 Jun 2012 19:15:11 +0100 Subject: Generic needs compat files --- include/git2/common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/git2/common.h') diff --git a/include/git2/common.h b/include/git2/common.h index b692c67e2..045ba85c4 100644 --- a/include/git2/common.h +++ b/include/git2/common.h @@ -107,7 +107,7 @@ GIT_EXTERN(int) git_strarray_copy(git_strarray *tgt, const git_strarray *src); */ GIT_EXTERN(void) git_libgit2_version(int *major, int *minor, int *rev); -GIT_EXTERN(int) p_fnmatch(const char *pattern, const char *string, int flags); +/* GIT_EXTERN(int) p_fnmatch(const char *pattern, const char *string, int flags); */ /** @} */ GIT_END_DECL -- cgit v1.2.1 From 327fb51cec5393bd84b560ad7df5b85298f96e3c Mon Sep 17 00:00:00 2001 From: Chris Young Date: Sat, 9 Jun 2012 18:13:07 +0100 Subject: Fix gethostbyname compatibility --- include/git2/common.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'include/git2/common.h') diff --git a/include/git2/common.h b/include/git2/common.h index 045ba85c4..99018d4f5 100644 --- a/include/git2/common.h +++ b/include/git2/common.h @@ -56,11 +56,7 @@ #endif #ifdef __amigaos4__ -/* Network byte order is big-endian... so is PPC, so these functions are NOP */ -#define htonl(x) x -#define ntohl(x) x -#define htons(x) x -#define ntohs(x) x +#include #endif /** -- cgit v1.2.1 From a8df98c6fb07b8ddff18a01d7f2f607d9493dd7c Mon Sep 17 00:00:00 2001 From: Chris Young Date: Thu, 14 Jun 2012 18:57:24 +0100 Subject: Updates from comments on OS4 compatibility pull request http://github.com/libgit2/libgit2/pull/766 --- include/git2/common.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'include/git2/common.h') diff --git a/include/git2/common.h b/include/git2/common.h index 99018d4f5..1af045cff 100644 --- a/include/git2/common.h +++ b/include/git2/common.h @@ -103,8 +103,6 @@ GIT_EXTERN(int) git_strarray_copy(git_strarray *tgt, const git_strarray *src); */ GIT_EXTERN(void) git_libgit2_version(int *major, int *minor, int *rev); -/* GIT_EXTERN(int) p_fnmatch(const char *pattern, const char *string, int flags); */ - /** @} */ GIT_END_DECL #endif -- cgit v1.2.1