Commit 51975727 by Chris Young

Fix double-defines when using GIT_OLD_ERRORS

parent 0f5e1f3b
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment