Re: [ANNOUNCE] GIT 1.0.7

From: Sergey Vlasov <vsu@altlinux.ru>
Date: 2006-01-07 23:12:44
On Sat, 07 Jan 2006 01:56:41 -0800 Junio C Hamano wrote:

> +#if (__GNUC__ == 2) && (__GNUC_MINOR__ == 95)
> +#define FLEX_ARRAY 0
> +#else
> +#define FLEX_ARRAY /* empty */
> +#endif

There is also gcc 2.96, which also does not understand the C99 syntax.
So we should use something like this instead:

#if defined(__GNUC__) && (__GNUC__ < 3)
#define FLEX_ARRAY 0
#else
#define FLEX_ARRAY /* empty */
#endif

(and be prepared to get complaints from users of other compilers).

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Received on Sun Jan 08 00:16:46 2006

This archive was generated by hypermail 2.1.8 : 2006-01-08 00:16:54 EST