Improve GCC version check so it won't reject versions like 5.4, 6.4,
7.2 and wrap `__clang__' with defined() to pacify -Wundef warning.
This commit is contained in:
parent
d85d2522bf
commit
0b88085b09
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=457674
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@
|
|||
|
||||
+/* With old GCC, do not override _Static_assert: it conflicts with
|
||||
+ #include <complex.h> below. */
|
||||
+#if __clang__ || (__GNUC__ >= 4 && __GNUC_MINOR__ >= 6)
|
||||
+#if defined(__clang__) || (__GNUC__ * 10 + __GNUC_MINOR__ >= 46)
|
||||
#include <verify.h>
|
||||
+#endif
|
||||
#include <assert.h>
|
||||
|
|
Loading…
Reference in a new issue