diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/cc-compat.h | 12 | ||||
| -rw-r--r-- | src/odb.c | 2 |
2 files changed, 7 insertions, 7 deletions
diff --git a/src/cc-compat.h b/src/cc-compat.h index 41fb16c71..32e41390c 100644 --- a/src/cc-compat.h +++ b/src/cc-compat.h @@ -7,14 +7,14 @@ /* * See if our compiler is known to support flexible array members. */ -#ifndef FLEX_ARRAY +#ifndef GIT_FLEX_ARRAY # if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L) -# define FLEX_ARRAY /* empty */ +# define GIT_FLEX_ARRAY /* empty */ # elif defined(__GNUC__) # if (__GNUC__ >= 3) -# define FLEX_ARRAY /* empty */ +# define GIT_FLEX_ARRAY /* empty */ # else -# define FLEX_ARRAY 0 /* older GNU extension */ +# define GIT_FLEX_ARRAY 0 /* older GNU extension */ # endif # endif @@ -25,9 +25,9 @@ #endif #ifdef __GNUC__ -# define TYPEOF(x) (__typeof__(x)) +# define GIT_TYPEOF(x) (__typeof__(x)) #else -# define TYPEOF(x) +# define GIT_TYPEOF(x) #endif #endif /* INCLUDE_compat_h__ */ @@ -70,7 +70,7 @@ typedef struct git_pack git_pack; typedef struct { size_t n_packs; unsigned int refcnt; - git_pack *packs[FLEX_ARRAY]; + git_pack *packs[GIT_FLEX_ARRAY]; } git_packlist; struct git_odb { |
