aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/intprops.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/intprops.h b/lib/intprops.h
index 8f5ad545154..28f43613fe2 100644
--- a/lib/intprops.h
+++ b/lib/intprops.h
@@ -219,7 +219,11 @@
219 : (max) >> (b) < (a)) 219 : (max) >> (b) < (a))
220 220
221/* True if __builtin_add_overflow (A, B, P) works when P is non-null. */ 221/* True if __builtin_add_overflow (A, B, P) works when P is non-null. */
222#define _GL_HAS_BUILTIN_OVERFLOW (5 <= __GNUC__) 222#if 5 <= __GNUC__ && !defined __ICC
223# define _GL_HAS_BUILTIN_OVERFLOW 1
224#else
225# define _GL_HAS_BUILTIN_OVERFLOW 0
226#endif
223 227
224/* True if __builtin_add_overflow_p (A, B, C) works. */ 228/* True if __builtin_add_overflow_p (A, B, C) works. */
225#define _GL_HAS_BUILTIN_OVERFLOW_P (7 <= __GNUC__) 229#define _GL_HAS_BUILTIN_OVERFLOW_P (7 <= __GNUC__)