From d5433c04a150ea236dc1284d800496882b1f4c11 Mon Sep 17 00:00:00 2001 From: Tue Ly Date: Wed, 2 Oct 2024 18:17:46 +0000 Subject: [PATCH] [libc] Fix iscanonical test on aarch64 and riscv64. --- libc/test/src/math/smoke/iscanonical_test.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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)