X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=git-compat-util.h;h=12ce6590bb926de2d27eee9520dd2017dd34554e;hb=8e76c79f4a1e66ed8e371d1232e879f45141dce1;hp=c353b276f0464714a4c0220b20df6318a374e28e;hpb=4e7a2eccc21c9029180585e43b3b941d0bdf8b3b;p=git.git diff --git a/git-compat-util.h b/git-compat-util.h index c353b276..12ce6590 100644 --- a/git-compat-util.h +++ b/git-compat-util.h @@ -1,6 +1,14 @@ #ifndef GIT_COMPAT_UTIL_H #define GIT_COMPAT_UTIL_H +#ifndef FLEX_ARRAY +#if defined(__GNUC__) && (__GNUC__ < 3) +#define FLEX_ARRAY 0 +#else +#define FLEX_ARRAY /* empty */ +#endif +#endif + #include #include #include