[libc-commits] [libc] 38d8f6e - [libc] Remove unnecessary include from putchar.h (#95576)

via libc-commits libc-commits at lists.llvm.org
Fri Jun 14 13:30:06 PDT 2024


Author: Michael Jones
Date: 2024-06-14T13:30:03-07:00
New Revision: 38d8f6e58430357856926498185b2b221afc1d2c

URL: https://github.com/llvm/llvm-project/commit/38d8f6e58430357856926498185b2b221afc1d2c
DIFF: https://github.com/llvm/llvm-project/commit/38d8f6e58430357856926498185b2b221afc1d2c.diff

LOG: [libc] Remove unnecessary include from putchar.h (#95576)

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.

Added: 
    

Modified: 
    libc/src/stdio/putchar.h

Removed: 
    


################################################################################
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);


        


More information about the libc-commits mailing list