[libc-commits] [libc] 2190ffa - [libc] Fix missing namespace declarations

Joseph Huber via libc-commits libc-commits at lists.llvm.org
Thu Oct 10 09:07:41 PDT 2024


Author: Joseph Huber
Date: 2024-10-10T11:07:33-05:00
New Revision: 2190ffa0f7e874d04fd0f750142135faa5df5d6b

URL: https://github.com/llvm/llvm-project/commit/2190ffa0f7e874d04fd0f750142135faa5df5d6b
DIFF: https://github.com/llvm/llvm-project/commit/2190ffa0f7e874d04fd0f750142135faa5df5d6b.diff

LOG: [libc] Fix missing namespace declarations

Added: 
    

Modified: 
    libc/src/stdio/asprintf.h
    libc/src/stdio/vasprintf.h

Removed: 
    


################################################################################
diff  --git a/libc/src/stdio/asprintf.h b/libc/src/stdio/asprintf.h
index 222dfdee9d4fd7..168721c4f98b98 100644
--- a/libc/src/stdio/asprintf.h
+++ b/libc/src/stdio/asprintf.h
@@ -11,10 +11,10 @@
 
 #include "src/__support/macros/config.h"
 
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
 
 int asprintf(char **__restrict s, const char *__restrict format, ...);
 
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL
 
 #endif // LLVM_LIBC_SRC_STDIO_ASPRINTF_H

diff  --git a/libc/src/stdio/vasprintf.h b/libc/src/stdio/vasprintf.h
index 8b286fe69bf203..b914c2f9ae0789 100644
--- a/libc/src/stdio/vasprintf.h
+++ b/libc/src/stdio/vasprintf.h
@@ -11,11 +11,11 @@
 
 #include <stdarg.h>
 
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
 
 int vasprintf(char **__restrict s, const char *__restrict format,
               va_list vlist);
 
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL
 
 #endif // LLVM_LIBC_SRC_STDIO_VASPRINTF_H


        


More information about the libc-commits mailing list