From d0517805d84f0fdd6c1311eb00a0d4ff257b4e47 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Tue, 5 Jun 2012 11:47:17 +0100 Subject: Required include for OS4 to typedef int64_t --- include/git2/types.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/git2') diff --git a/include/git2/types.h b/include/git2/types.h index b569e83c..8fdfd7fc 100644 --- a/include/git2/types.h +++ b/include/git2/types.h @@ -48,6 +48,9 @@ GIT_BEGIN_DECL * stat() functions, for all platforms. */ #include +#ifdef __amigaos4__ +#include +#endif #if defined(_MSC_VER) -- cgit v1.2.1 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') diff --git a/include/git2/common.h b/include/git2/common.h index 0e937980..4e6c2a57 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 519757279eb25fe4075f65b86da5ce52d352b454 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Thu, 7 Jun 2012 23:13:39 +0100 Subject: Fix double-defines when using GIT_OLD_ERRORS --- include/git2/errors.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include/git2') diff --git a/include/git2/errors.h b/include/git2/errors.h index ccbc9fcf..b4809fe1 100644 --- a/include/git2/errors.h +++ b/include/git2/errors.h @@ -20,6 +20,7 @@ GIT_BEGIN_DECL #ifdef GIT_OLD_ERRORS enum { GIT_SUCCESS = 0, + GIT_ERROR = -1, GIT_ENOTOID = -2, GIT_ENOTFOUND = -3, GIT_ENOMEM = -4, @@ -52,7 +53,7 @@ enum { GIT_ENOMATCH = -31, GIT_ESHORTBUFFER = -32, }; -#endif +#else /** Generic return codes */ enum { @@ -66,6 +67,7 @@ enum { GIT_PASSTHROUGH = -30, GIT_REVWALKOVER = -31, }; +#endif typedef struct { char *message; -- 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') diff --git a/include/git2/common.h b/include/git2/common.h index 4e6c2a57..b692c67e 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') diff --git a/include/git2/common.h b/include/git2/common.h index b692c67e..045ba85c 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') diff --git a/include/git2/common.h b/include/git2/common.h index 045ba85c..99018d4f 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') diff --git a/include/git2/common.h b/include/git2/common.h index 99018d4f..1af045cf 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