Skip to content

Commit a87ef64

Browse files
authored
__has_unique_object_representations is supported by MSVC (NVIDIA#4494)
1 parent c5f1379 commit a87ef64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libcudacxx/include/cuda/std/__cccl/builtin.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -930,7 +930,7 @@
930930
# define _CCCL_BUILTIN_HAS_TRIVIAL_DESTRUCTOR(...) __has_trivial_destructor(__VA_ARGS__)
931931
#endif // _CCCL_CHECK_BUILTIN(has_trivial_destructor) && gcc >= 4.3
932932

933-
#if _CCCL_CHECK_BUILTIN(has_unique_object_representations) || _CCCL_COMPILER(GCC, >=, 7)
933+
#if _CCCL_CHECK_BUILTIN(has_unique_object_representations) || _CCCL_COMPILER(GCC, >=, 7) || _CCCL_COMPILER(MSVC)
934934
# define _CCCL_BUILTIN_HAS_UNIQUE_OBJECT_REPRESENTATIONS(...) __has_unique_object_representations(__VA_ARGS__)
935935
#endif // _CCCL_CHECK_BUILTIN(has_unique_object_representations) && gcc >= 7.0
936936

0 commit comments

Comments
 (0)