Only use the static assertion when __generic is available.

Reported by:	tijl
This commit is contained in:
Ed Schouten 2012-01-17 20:22:10 +00:00
parent 9b6e65b66f
commit 76f11d88aa
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=230278

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