mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-13 05:41:26 +01: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 New Issue
Block a user