summaryrefslogtreecommitdiff
path: root/include/git2/errors.h
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2012-06-22 20:48:50 +0200
committerVicent Marti <tanoku@gmail.com>2012-06-22 20:48:50 +0200
commit2ae052d1b1574d1a4de402c91ebb98f061c997d4 (patch)
treeb300607ad284ef97e5b0d09cf519905f84668174 /include/git2/errors.h
parent430af731d259053691b0de9b18917f7adf97021a (diff)
parentdb5a6ec72b63c986cca764c75f9d3d720cff44ef (diff)
downloadlibgit2-2ae052d1b1574d1a4de402c91ebb98f061c997d4.tar.gz
Merge branch 'pull-req' of https://github.com/chris-y/libgit2 into amigaos
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;