| commit | 8ff63a678516e5e6bae1a1320f245d01e3be943e | [log] [tgz] |
|---|---|---|
| author | Ryan Prichard <[email protected]> | Fri Dec 20 13:23:25 2024 -0800 |
| committer | Ryan Prichard <[email protected]> | Fri Dec 20 13:23:25 2024 -0800 |
| tree | e28b40e6d6477cb76411100ca0294dbc45a75fc3 | |
| parent | 57b35aa98f3f94774cd171fabdc09034807163fc [diff] |
regex: avoid a namespace collision with C23 <float.h>. Bug: http://b/384985989 Test: presubmit Change-Id: I8173cb185fc329b356c3741be6f13f1c5367dc88
diff --git a/lib/Support/regcomp.c b/lib/Support/regcomp.c index ebde64f..ac7bb8c 100644 --- a/lib/Support/regcomp.c +++ b/lib/Support/regcomp.c
@@ -150,6 +150,7 @@ #else #define DUPMAX 255 #endif +#undef INFINITY // Android-added: avoid collision with C23 <float.h> INFINITY (via <limits.h>) #define INFINITY (DUPMAX + 1) #ifndef NDEBUG