summaryrefslogtreecommitdiff
path: root/libc/src/string/strerror_r.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/string/strerror_r.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/string/strerror_r.cpp')
-rw-r--r--libc/src/string/strerror_r.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/libc/src/string/strerror_r.cpp b/libc/src/string/strerror_r.cpp
index ba23f2752e83..c514dbd74090 100644
--- a/libc/src/string/strerror_r.cpp
+++ b/libc/src/string/strerror_r.cpp
@@ -9,11 +9,10 @@
#include "src/string/strerror_r.h"
#include "src/__support/StringUtil/error_to_string.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
#include <stddef.h>
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
// This is the gnu version of strerror_r. The XSI version may be added later.
LLVM_LIBC_FUNCTION(char *, strerror_r,
@@ -21,4 +20,4 @@ LLVM_LIBC_FUNCTION(char *, strerror_r,
return const_cast<char *>(get_error_string(err_num, {buf, buflen}).data());
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE