summaryrefslogtreecommitdiff
path: root/libc/src/__support/File/linux/stdin.cpp
diff options
context:
space:
mode:
authorMehdi Amini <joker.eph@gmail.com>2024-07-12 09:12:13 +0200
committerGitHub <noreply@github.com>2024-07-12 09:12:13 +0200
commitce9035f5bd3aa09cbd899489cdbc7f6c18acf1e3 (patch)
tree0f22897d7f178d7b3850db2397b4b59698336d26 /libc/src/__support/File/linux/stdin.cpp
parent37d3f44a58d0a2a2e8782266acd66a6733984842 (diff)
Revert "[libc] Migrate to using LIBC_NAMESPACE_DECL for namespace declaration" (#98593)
Reverts llvm/llvm-project#98075 bots are broken
Diffstat (limited to 'libc/src/__support/File/linux/stdin.cpp')
-rw-r--r--libc/src/__support/File/linux/stdin.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/libc/src/__support/File/linux/stdin.cpp b/libc/src/__support/File/linux/stdin.cpp
index e7b6ede85dde..49146dacfd4a 100644
--- a/libc/src/__support/File/linux/stdin.cpp
+++ b/libc/src/__support/File/linux/stdin.cpp
@@ -9,9 +9,8 @@
#include "file.h"
#include "hdr/stdio_macros.h"
#include "hdr/types/FILE.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
constexpr size_t STDIN_BUFFER_SIZE = 512;
uint8_t stdin_buffer[STDIN_BUFFER_SIZE];
@@ -19,7 +18,7 @@ static LinuxFile StdIn(0, stdin_buffer, STDIN_BUFFER_SIZE, _IOFBF, false,
File::ModeFlags(File::OpenMode::READ));
File *stdin = &StdIn;
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
extern "C" {
FILE *stdin = reinterpret_cast<FILE *>(&LIBC_NAMESPACE::StdIn);