summaryrefslogtreecommitdiff
path: root/libc/src/stdio/scanf.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libc/src/stdio/scanf.cpp')
-rw-r--r--libc/src/stdio/scanf.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/libc/src/stdio/scanf.cpp b/libc/src/stdio/scanf.cpp
index bfa8d46007b9..86a8851df288 100644
--- a/libc/src/stdio/scanf.cpp
+++ b/libc/src/stdio/scanf.cpp
@@ -10,6 +10,7 @@
#include "src/__support/File/file.h"
#include "src/__support/arg_list.h"
+#include "src/__support/macros/config.h"
#include "src/stdio/scanf_core/vfscanf_internal.h"
#include "hdr/types/FILE.h"
@@ -21,7 +22,7 @@
#define SCANF_STDIN ::stdin
#endif // LIBC_COPT_STDIO_USE_SYSTEM_FILE
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(int, scanf, (const char *__restrict format, ...)) {
va_list vlist;
@@ -37,4 +38,4 @@ LLVM_LIBC_FUNCTION(int, scanf, (const char *__restrict format, ...)) {
return (ret_val == -1) ? EOF : ret_val;
}
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL