aboutsummaryrefslogtreecommitdiff
path: root/libc/test/UnitTest
diff options
context:
space:
mode:
authorMichael Jones <michaelrj@google.com>2024-03-18 14:19:33 -0700
committerGitHub <noreply@github.com>2024-03-18 14:19:33 -0700
commit5d56b34807e0f6e7a6684e57bec7c1751778862c (patch)
tree904d422f958d4c1fc0f726b87761a5ef9286f270 /libc/test/UnitTest
parentd0d9839b146692160aa3e0efed86faefde949f49 (diff)
downloadllvm-5d56b34807e0f6e7a6684e57bec7c1751778862c.zip
llvm-5d56b34807e0f6e7a6684e57bec7c1751778862c.tar.gz
llvm-5d56b34807e0f6e7a6684e57bec7c1751778862c.tar.bz2
[libc] Remove direct math.h includes (#85324)
Reland of #84991 A downstream overlay mode user ran into issues with the isnan macro not working in our sources with a specific libc configuration. This patch replaces the last direct includes of math.h with our internal math_macros.h, along with the necessary build system changes.
Diffstat (limited to 'libc/test/UnitTest')
-rw-r--r--libc/test/UnitTest/FPMatcher.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/test/UnitTest/FPMatcher.h b/libc/test/UnitTest/FPMatcher.h
index ae9d674..43000ef 100644
--- a/libc/test/UnitTest/FPMatcher.h
+++ b/libc/test/UnitTest/FPMatcher.h
@@ -17,7 +17,7 @@
#include "test/UnitTest/StringUtils.h"
#include "test/UnitTest/Test.h"
-#include <math.h>
+#include "include/llvm-libc-macros/math-macros.h"
namespace LIBC_NAMESPACE {
namespace testing {