[libc-commits] [libc] [libc] Remove the `stdio.h` include from `puts.h` (PR #98132)

Petr Hosek via libc-commits libc-commits at lists.llvm.org
Tue Jul 9 01:46:52 PDT 2024


https://github.com/petrhosek created https://github.com/llvm/llvm-project/pull/98132

This is unused.

>From a70227c62b64588ed9f7f5a2294ccdbc98b9bf46 Mon Sep 17 00:00:00 2001
From: Petr Hosek <phosek at google.com>
Date: Tue, 9 Jul 2024 01:46:03 -0700
Subject: [PATCH] [libc] Remove the `stdio.h` include from `puts.h`

This is unused.
---
 libc/src/stdio/puts.h | 2 --
 1 file changed, 2 deletions(-)

diff --git a/libc/src/stdio/puts.h b/libc/src/stdio/puts.h
index 11fbd0be897cf..68d5225b00a17 100644
--- a/libc/src/stdio/puts.h
+++ b/libc/src/stdio/puts.h
@@ -9,8 +9,6 @@
 #ifndef LLVM_LIBC_SRC_STDIO_PUTS_H
 #define LLVM_LIBC_SRC_STDIO_PUTS_H
 
-#include <stdio.h>
-
 namespace LIBC_NAMESPACE {
 
 int puts(const char *__restrict str);



More information about the libc-commits mailing list