diff options
| author | Petr Hosek <phosek@google.com> | 2024-07-11 12:35:22 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-11 12:35:22 -0700 |
| commit | 3f30effe1bd81fa1b039218a9bfe79c3b03fafad (patch) | |
| tree | f3f9bbaca2e1088607359c74c4c696742383c032 /libc/src/sys/socket/linux | |
| parent | 2d7e136fc0e31207b962397250bc1581203c8d59 (diff) | |
[libc] Migrate to using LIBC_NAMESPACE_DECL for namespace declaration (#98075)
This is a part of #97655.
Diffstat (limited to 'libc/src/sys/socket/linux')
| -rw-r--r-- | libc/src/sys/socket/linux/bind.cpp | 5 | ||||
| -rw-r--r-- | libc/src/sys/socket/linux/socket.cpp | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/libc/src/sys/socket/linux/bind.cpp b/libc/src/sys/socket/linux/bind.cpp index 36afc646d29f..3289e9f0852e 100644 --- a/libc/src/sys/socket/linux/bind.cpp +++ b/libc/src/sys/socket/linux/bind.cpp @@ -11,12 +11,13 @@ #include "src/__support/OSUtil/syscall.h" // For internal syscall function. #include "src/__support/common.h" +#include "src/__support/macros/config.h" #include "src/errno/libc_errno.h" #include <linux/net.h> // For SYS_SOCKET socketcall number. #include <sys/syscall.h> // For syscall numbers. -namespace LIBC_NAMESPACE { +namespace LIBC_NAMESPACE_DECL { LLVM_LIBC_FUNCTION(int, bind, (int domain, const struct sockaddr *address, @@ -40,4 +41,4 @@ LLVM_LIBC_FUNCTION(int, bind, return ret; } -} // namespace LIBC_NAMESPACE +} // namespace LIBC_NAMESPACE_DECL diff --git a/libc/src/sys/socket/linux/socket.cpp b/libc/src/sys/socket/linux/socket.cpp index 90a7dc632e26..3e6df4d487a5 100644 --- a/libc/src/sys/socket/linux/socket.cpp +++ b/libc/src/sys/socket/linux/socket.cpp @@ -11,12 +11,13 @@ #include "src/__support/OSUtil/syscall.h" // For internal syscall function. #include "src/__support/common.h" +#include "src/__support/macros/config.h" #include "src/errno/libc_errno.h" #include <linux/net.h> // For SYS_SOCKET socketcall number. #include <sys/syscall.h> // For syscall numbers. -namespace LIBC_NAMESPACE { +namespace LIBC_NAMESPACE_DECL { LLVM_LIBC_FUNCTION(int, socket, (int domain, int type, int protocol)) { #ifdef SYS_socket @@ -38,4 +39,4 @@ LLVM_LIBC_FUNCTION(int, socket, (int domain, int type, int protocol)) { return ret; } -} // namespace LIBC_NAMESPACE +} // namespace LIBC_NAMESPACE_DECL |
