[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] verify: use _Static_assert if available
From: |
Bruno Haible |
Subject: |
Re: [PATCH] verify: use _Static_assert if available |
Date: |
Wed, 6 Apr 2011 00:21:17 +0200 |
User-agent: |
KMail/1.9.9 |
Hi Paul,
> +# if (201104 <= __STDC_VERSION__ \
> + || 4 < __GNUC__ || (__GNUC__ == 4 && 6 <= __GNUC_MINOR__))
> +# define HAVE__STATIC_ASSERT 1
Isn't the first part of this condition a bit optimistic? I think that
experience in the past has shown that compiler vendors tend to bump the
__STDC_VERSION__ value when they have implemented part but not all of the
features of that ISO C version.
So, there is some risk in adding "201104 <= __STDC_VERSION__ || "
and no risk in omitting it.
Bruno
--
In memoriam María Cristina Gómez
<http://en.wikipedia.org/wiki/María_Cristina_Gómez>