Skip to content

Commit 93ee8d8

Browse files
pwnallMarcoFalke
authored andcommitted
Merge pull request google#965 from ShawnZhong:cpp20
PiperOrigin-RevId: 420504266 (cherry picked from commit e4ccaa0)
1 parent 0c40829 commit 93ee8d8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

util/env_posix.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -837,7 +837,7 @@ class SingletonEnv {
837837
public:
838838
SingletonEnv() {
839839
#if !defined(NDEBUG)
840-
env_initialized_.store(true, std::memory_order::memory_order_relaxed);
840+
env_initialized_.store(true, std::memory_order_relaxed);
841841
#endif // !defined(NDEBUG)
842842
static_assert(sizeof(env_storage_) >= sizeof(EnvType),
843843
"env_storage_ will not fit the Env");
@@ -854,7 +854,7 @@ class SingletonEnv {
854854

855855
static void AssertEnvNotInitialized() {
856856
#if !defined(NDEBUG)
857-
assert(!env_initialized_.load(std::memory_order::memory_order_relaxed));
857+
assert(!env_initialized_.load(std::memory_order_relaxed));
858858
#endif // !defined(NDEBUG)
859859
}
860860

util/env_windows.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -749,7 +749,7 @@ class SingletonEnv {
749749
public:
750750
SingletonEnv() {
751751
#if !defined(NDEBUG)
752-
env_initialized_.store(true, std::memory_order::memory_order_relaxed);
752+
env_initialized_.store(true, std::memory_order_relaxed);
753753
#endif // !defined(NDEBUG)
754754
static_assert(sizeof(env_storage_) >= sizeof(EnvType),
755755
"env_storage_ will not fit the Env");
@@ -766,7 +766,7 @@ class SingletonEnv {
766766

767767
static void AssertEnvNotInitialized() {
768768
#if !defined(NDEBUG)
769-
assert(!env_initialized_.load(std::memory_order::memory_order_relaxed));
769+
assert(!env_initialized_.load(std::memory_order_relaxed));
770770
#endif // !defined(NDEBUG)
771771
}
772772

0 commit comments

Comments
 (0)