mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-22 02:37:15 +00:00
Only use the static assertion when __generic is available.
Reported by: tijl
This commit is contained in:
parent
9b6e65b66f
commit
76f11d88aa
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=230278
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue