[libc-commits] [libc] [libc] Remove unnecessary include from putchar.h (PR #95576)
via libc-commits
libc-commits at lists.llvm.org
Fri Jun 14 10:42:01 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-libc
Author: Michael Jones (michaelrj-google)
<details>
<summary>Changes</summary>
The putchar header was including the public stdio.h. It doesn't need to
do that and it was causing build failures for downstream baremetal users
so this patch fixes it.
---
Full diff: https://github.com/llvm/llvm-project/pull/95576.diff
1 Files Affected:
- (modified) libc/src/stdio/putchar.h (-2)
``````````diff
diff --git a/libc/src/stdio/putchar.h b/libc/src/stdio/putchar.h
index 99a7453efb11d..e458e3179ed6b 100644
--- a/libc/src/stdio/putchar.h
+++ b/libc/src/stdio/putchar.h
@@ -9,8 +9,6 @@
#ifndef LLVM_LIBC_SRC_STDIO_PUTCHAR_H
#define LLVM_LIBC_SRC_STDIO_PUTCHAR_H
-#include <stdio.h>
-
namespace LIBC_NAMESPACE {
int putchar(int c);
``````````
</details>
https://github.com/llvm/llvm-project/pull/95576
More information about the libc-commits
mailing list