Only use the static assertion when __generic is available.

Reported by:	tijl
This commit is contained in:
ed 2012-01-17 20:22:10 +00:00
parent 99a08914e7
commit 55f99993c3

View File

@ -36,6 +36,9 @@
#define _Complex __complex__
#endif
#define _Complex_I ((float _Complex)1.0i)
#endif
#ifdef __generic
_Static_assert(__generic(_Complex_I, float _Complex, 1, 0),
"_Complex_I must be of type float _Complex");
#endif