Fix double-defines when using GIT_OLD_ERRORS

This commit is contained in:
Chris Young 2012-06-07 23:13:39 +01:00
parent 0f5e1f3b68
commit 519757279e

View File

@ -20,6 +20,7 @@ GIT_BEGIN_DECL
#ifdef GIT_OLD_ERRORS #ifdef GIT_OLD_ERRORS
enum { enum {
GIT_SUCCESS = 0, GIT_SUCCESS = 0,
GIT_ERROR = -1,
GIT_ENOTOID = -2, GIT_ENOTOID = -2,
GIT_ENOTFOUND = -3, GIT_ENOTFOUND = -3,
GIT_ENOMEM = -4, GIT_ENOMEM = -4,
@ -52,7 +53,7 @@ enum {
GIT_ENOMATCH = -31, GIT_ENOMATCH = -31,
GIT_ESHORTBUFFER = -32, GIT_ESHORTBUFFER = -32,
}; };
#endif #else
/** Generic return codes */ /** Generic return codes */
enum { enum {
@ -66,6 +67,7 @@ enum {
GIT_PASSTHROUGH = -30, GIT_PASSTHROUGH = -30,
GIT_REVWALKOVER = -31, GIT_REVWALKOVER = -31,
}; };
#endif
typedef struct { typedef struct {
char *message; char *message;