aboutsummaryrefslogtreecommitdiff
path: root/libc/src/stdlib/rand_util.cpp
diff options
context:
space:
mode:
authorPetr Hosek <phosek@google.com>2024-07-12 09:28:41 -0700
committerGitHub <noreply@github.com>2024-07-12 09:28:41 -0700
commit5ff3ff33ff930e4ec49da7910612d8a41eb068cb (patch)
treeffb876db6deb2dfd4c6c0c11ddf692db75082f7f /libc/src/stdlib/rand_util.cpp
parentdd866040aeb2703debacc141f60429ea0f567146 (diff)
downloadllvm-5ff3ff33ff930e4ec49da7910612d8a41eb068cb.zip
llvm-5ff3ff33ff930e4ec49da7910612d8a41eb068cb.tar.gz
llvm-5ff3ff33ff930e4ec49da7910612d8a41eb068cb.tar.bz2
[libc] Migrate to using LIBC_NAMESPACE_DECL for namespace declaration (#98597)
This is a part of #97655.
Diffstat (limited to 'libc/src/stdlib/rand_util.cpp')
-rw-r--r--libc/src/stdlib/rand_util.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/libc/src/stdlib/rand_util.cpp b/libc/src/stdlib/rand_util.cpp
index ff3478db..c05bdc7 100644
--- a/libc/src/stdlib/rand_util.cpp
+++ b/libc/src/stdlib/rand_util.cpp
@@ -9,11 +9,12 @@
#include "src/stdlib/rand_util.h"
#include "src/__support/CPP/atomic.h"
#include "src/__support/macros/attributes.h"
+#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
// C standard 7.10p2: If 'rand' is called before 'srand' it is to
// proceed as if the 'srand' function was called with a value of '1'.
cpp::Atomic<unsigned long> rand_next = 1;
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL