diff --git a/libc/test/src/math/smoke/iscanonical_test.cpp b/libc/test/src/math/smoke/iscanonical_test.cpp index 2dd1c2ac6f045..8e8b3e4308f88 100644 --- a/libc/test/src/math/smoke/iscanonical_test.cpp +++ b/libc/test/src/math/smoke/iscanonical_test.cpp @@ -8,6 +8,10 @@ #include "IsCanonicalTest.h" +// The testing framework might include math.h and iscanonical macro definition +// in overlay mode. +#undef iscanonical + #include "src/math/iscanonical.h" LIST_ISCANONICAL_TESTS(double, LIBC_NAMESPACE::iscanonical)