Skip to content

Commit 9340c9f

Browse files
[libc] fix fileno includes (#98514)
Fileno was directly including the FILE and so I missed it when replacing all of the direct includes of stdio.h
1 parent 04c8c95 commit 9340c9f

File tree

3 files changed

+4
-13
lines changed

3 files changed

+4
-13
lines changed

libc/src/stdio/CMakeLists.txt

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -209,15 +209,6 @@ add_entrypoint_object(
209209
libc.src.stdio.printf_core.vfprintf_internal
210210
)
211211

212-
add_stdio_entrypoint_object(
213-
fileno
214-
SRCS
215-
fileno.cpp
216-
HDRS
217-
fileno.h
218-
DEPENDS
219-
libc.src.stdio.fileno
220-
)
221212

222213
add_subdirectory(printf_core)
223214
add_subdirectory(scanf_core)
@@ -251,6 +242,7 @@ add_stdio_entrypoint_object(ferror_unlocked)
251242
add_stdio_entrypoint_object(fseek)
252243
add_stdio_entrypoint_object(ftell)
253244
add_stdio_entrypoint_object(fseeko)
245+
add_stdio_entrypoint_object(fileno)
254246
add_stdio_entrypoint_object(ftello)
255247
add_stdio_entrypoint_object(fflush)
256248
add_stdio_entrypoint_object(clearerr)

libc/src/stdio/fileno.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
//===-- Implementation header of fileno --------------------------*- C++
2-
//-*-===//
1+
//===-- Implementation header of fileno -------------------------*- C++ -*-===//
32
//
43
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
54
// See https://llvm.org/LICENSE.txt for license information.
@@ -10,7 +9,7 @@
109
#ifndef LLVM_LIBC_SRC_STDIO_FILENO_H
1110
#define LLVM_LIBC_SRC_STDIO_FILENO_H
1211

13-
#include "include/llvm-libc-types/FILE.h"
12+
#include "hdr/types/FILE.h"
1413

1514
namespace LIBC_NAMESPACE {
1615

libc/src/stdio/generic/fileno.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
#include "src/stdio/fileno.h"
1111

12-
#include "include/llvm-libc-types/FILE.h"
12+
#include "hdr/types/FILE.h"
1313
#include "src/__support/File/file.h"
1414

1515
namespace LIBC_NAMESPACE {

0 commit comments

Comments
 (0)