summaryrefslogtreecommitdiff
path: root/libc/src/stdio/generic/putc.cpp
diff options
context:
space:
mode:
authorGuillaume Chatelet <gchatelet@google.com>2023-09-26 11:45:04 +0200
committerGitHub <noreply@github.com>2023-09-26 11:45:04 +0200
commitb6bc9d72f65a5086f310f321e969d96e9a559e75 (patch)
tree1e9a9f8c36c9dfc0106507f7b7a0055af83c4a07 /libc/src/stdio/generic/putc.cpp
parent7675f541f75baa20e8ec007cd625a837e89fc01f (diff)
[libc] Mass replace enclosing namespace (#67032)
This is step 4 of https://discourse.llvm.org/t/rfc-customizable-namespace-to-allow-testing-the-libc-when-the-system-libc-is-also-llvms-libc/73079
Diffstat (limited to 'libc/src/stdio/generic/putc.cpp')
-rw-r--r--libc/src/stdio/generic/putc.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/libc/src/stdio/generic/putc.cpp b/libc/src/stdio/generic/putc.cpp
index 37937dfb7e60..58e3b4d1bae4 100644
--- a/libc/src/stdio/generic/putc.cpp
+++ b/libc/src/stdio/generic/putc.cpp
@@ -12,12 +12,12 @@
#include "src/errno/libc_errno.h"
#include <stdio.h>
-namespace __llvm_libc {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(int, putc, (int c, ::FILE *stream)) {
unsigned char uc = static_cast<unsigned char>(c);
- auto result = reinterpret_cast<__llvm_libc::File *>(stream)->write(&uc, 1);
+ auto result = reinterpret_cast<LIBC_NAMESPACE::File *>(stream)->write(&uc, 1);
if (result.has_error())
libc_errno = result.error;
size_t written = result.value;
@@ -29,4 +29,4 @@ LLVM_LIBC_FUNCTION(int, putc, (int c, ::FILE *stream)) {
return 0;
}
-} // namespace __llvm_libc
+} // namespace LIBC_NAMESPACE