[libc-commits] [libc] [libc] Add a missing math-function-macros.h include (PR #98271)

Petr Hosek via libc-commits libc-commits at lists.llvm.org
Tue Jul 9 22:11:17 PDT 2024


https://github.com/petrhosek updated https://github.com/llvm/llvm-project/pull/98271

>From 5730c3445e1b6cc78dd6b466ba3e4449cc65602f Mon Sep 17 00:00:00 2001
From: Petr Hosek <phosek at google.com>
Date: Tue, 9 Jul 2024 22:04:23 -0700
Subject: [PATCH 1/2] [libc] Add a missing math-function-macros.h include

This was accidentally omitted in #96008.
---
 libc/hdr/math_macros.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libc/hdr/math_macros.h b/libc/hdr/math_macros.h
index 863451123f3f8..0867ccd4743a8 100644
--- a/libc/hdr/math_macros.h
+++ b/libc/hdr/math_macros.h
@@ -12,6 +12,7 @@
 #ifdef LIBC_FULL_BUILD
 
 #include "include/llvm-libc-macros/math-macros.h"
+#include "include/llvm-libc-macros/math-function-macros.h"
 
 #else // Overlay mode
 

>From 01b15636ca5a00469a7509b579e194d366c1c5bb Mon Sep 17 00:00:00 2001
From: Petr Hosek <phosek at google.com>
Date: Tue, 9 Jul 2024 22:10:57 -0700
Subject: [PATCH 2/2] Fix formatting

---
 libc/hdr/math_macros.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libc/hdr/math_macros.h b/libc/hdr/math_macros.h
index 0867ccd4743a8..d5a823723747c 100644
--- a/libc/hdr/math_macros.h
+++ b/libc/hdr/math_macros.h
@@ -11,8 +11,8 @@
 
 #ifdef LIBC_FULL_BUILD
 
-#include "include/llvm-libc-macros/math-macros.h"
 #include "include/llvm-libc-macros/math-function-macros.h"
+#include "include/llvm-libc-macros/math-macros.h"
 
 #else // Overlay mode
 



More information about the libc-commits mailing list