summaryrefslogtreecommitdiff
path: root/include/git2/errors.h
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2012-06-07 23:13:39 +0100
committerChris Young <chris@unsatisfactorysoftware.co.uk>2012-06-07 23:13:39 +0100
commit519757279eb25fe4075f65b86da5ce52d352b454 (patch)
tree5a92f7fa414f89d1c46729aa3a356e489668b5c0 /include/git2/errors.h
parent0f5e1f3b68eb68c257eb45b72650e8a653451a1d (diff)
downloadlibgit2-519757279eb25fe4075f65b86da5ce52d352b454.tar.gz
Fix double-defines when using GIT_OLD_ERRORS
Diffstat (limited to 'include/git2/errors.h')
-rw-r--r--include/git2/errors.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/git2/errors.h b/include/git2/errors.h
index ccbc9fcf4..b4809fe15 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;