commit | b48087f8054372437748f21f86a63e9c077d4ede | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Fri Dec 20 13:02:58 2024 -0800 |
committer | Elliott Hughes <enh@google.com> | Fri Dec 20 13:02:58 2024 -0800 |
tree | d133afab7f8ce1acc815df9359711ebe96d88e83 | |
parent | 9e34ca740baf667cbeb7bbe3e9324128975c8f26 [diff] |
regex: avoid a namespace collision with C23 <float.h>. Bug: http://b/384985989 Change-Id: I6ecae099b9eec6dbdbe1f17abe130a1b3265d19f
diff --git a/libc/upstream-netbsd/lib/libc/regex/utils.h b/libc/upstream-netbsd/lib/libc/regex/utils.h index 972f555..8650dd4 100644 --- a/libc/upstream-netbsd/lib/libc/regex/utils.h +++ b/libc/upstream-netbsd/lib/libc/regex/utils.h
@@ -63,6 +63,7 @@ /* utility definitions */ #define DUPMAX _POSIX2_RE_DUP_MAX /* xxx is this right? */ +#undef INFINITY // Android-added: avoid collision with C23 <float.h> INFINITY (via <limits.h>) #define INFINITY (DUPMAX + 1) #define NC_MAX (CHAR_MAX - CHAR_MIN + 1)