Skip to content

Commit

Permalink
add "interface" to _CCCL_PUSH_MACROS (NVIDIA#2919)
Browse files Browse the repository at this point in the history
  • Loading branch information
ericniebler authored and trxcllnt committed Nov 23, 2024
1 parent 3a1ecef commit e6e3fe5
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions libcudacxx/include/cuda/std/__cccl/diagnostic.h
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,12 @@
# define _CCCL_PUSH_MACROS _CCCL_MSVC_WARNINGS_PUSH
# define _CCCL_POP_MACROS _CCCL_MSVC_WARNINGS_POP
#else // ^^^ _CCCL_HAS_NO_PRAGMA_PUSH_POP_MACRO ^^^ / vvv !_CCCL_HAS_NO_PRAGMA_PUSH_POP_MACRO vvv
# define _CCCL_PUSH_MACROS _CCCL_PRAGMA(push_macro("min")) _CCCL_PRAGMA(push_macro("max")) _CCCL_MSVC_WARNINGS_PUSH
# define _CCCL_POP_MACROS _CCCL_PRAGMA(pop_macro("min")) _CCCL_PRAGMA(pop_macro("max")) _CCCL_MSVC_WARNINGS_POP

# define _CCCL_PUSH_MACROS \
_CCCL_PRAGMA(push_macro("min")) \
_CCCL_PRAGMA(push_macro("max")) _CCCL_PRAGMA(push_macro("interface")) _CCCL_MSVC_WARNINGS_PUSH
# define _CCCL_POP_MACROS \
_CCCL_PRAGMA(pop_macro("min")) \
_CCCL_PRAGMA(pop_macro("max")) _CCCL_PRAGMA(pop_macro("interface")) _CCCL_MSVC_WARNINGS_POP
#endif // !_CCCL_HAS_NO_PRAGMA_PUSH_POP_MACRO

#endif // __CCCL_DIAGNOSTIC_H

0 comments on commit e6e3fe5

Please sign in to comment.