diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2012-06-07 21:56:19 +0100 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2012-06-07 21:56:19 +0100 |
commit | 0f5e1f3b68eb68c257eb45b72650e8a653451a1d (patch) | |
tree | 5a6b912bb8a766f2edebaef6db7696aa12f57b82 /include/git2/common.h | |
parent | 6b5db63c159ea1d2112fe8dc535b877da03a6848 (diff) | |
download | libgit2-0f5e1f3b68eb68c257eb45b72650e8a653451a1d.tar.gz |
Network byte order is big-endian - the way it should be :)
Diffstat (limited to 'include/git2/common.h')
-rw-r--r-- | include/git2/common.h | 8 |
1 files changed, 8 insertions, 0 deletions
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 |