Only use the static assertion when __generic is available.
Reported by: tijl
This commit is contained in:
parent
99a08914e7
commit
55f99993c3
@ -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…
x
Reference in New Issue
Block a user