Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Commit

Permalink
Fix a few includes occuring within internal namespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
wmaxey committed Aug 4, 2021
1 parent 8711f32 commit 6efb206
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
8 changes: 8 additions & 0 deletions libcxx/include/atomic
Original file line number Diff line number Diff line change
Expand Up @@ -588,6 +588,14 @@ void atomic_signal_fence(memory_order m) noexcept;
__f == memory_order_acq_rel, \
"memory order argument to atomic operation is invalid")

#if defined(_LIBCUDACXX_HAS_MSVC_ATOMIC_IMPL)
# include <intrin.h>
#endif

#if !defined(_LIBCUDACXX_COMPILER_NVRTC)
# include <string.h>
#endif

_LIBCUDACXX_BEGIN_NAMESPACE_STD

// Figure out what the underlying type for `memory_order` would be if it were
Expand Down
2 changes: 0 additions & 2 deletions libcxx/include/support/atomic/atomic_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
#ifndef _LIBCUDACXX_ATOMIC_BASE_H
#define _LIBCUDACXX_ATOMIC_BASE_H

#include <type_traits>

template <typename _Tp, int _Sco>
struct __cxx_atomic_base_impl {
using __underlying_t = _Tp;
Expand Down
4 changes: 0 additions & 4 deletions libcxx/include/support/atomic/atomic_cuda.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@
# error "CUDA atomics are only supported for sm_60 and up on *nix and sm_70 and up on Windows."
#endif

#ifndef __CUDACC_RTC__
#include <string.h>
#endif // __CUDACC_RTC__

#if !defined(__CLANG_ATOMIC_BOOL_LOCK_FREE) && !defined(__GCC_ATOMIC_BOOL_LOCK_FREE)
#define ATOMIC_BOOL_LOCK_FREE 2
#define ATOMIC_CHAR_LOCK_FREE 2
Expand Down
2 changes: 0 additions & 2 deletions libcxx/include/support/atomic/atomic_msvc.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
#error "This file is only for CL.EXE's benefit"
#endif

#include <intrin.h>

#define _Compiler_barrier() _ReadWriteBarrier()

#if defined(_M_ARM) || defined(_M_ARM64)
Expand Down

0 comments on commit 6efb206

Please sign in to comment.