From e2fc00da65a7c988c910802fc5661fdcd89faf2c Mon Sep 17 00:00:00 2001 From: Sarbojit2019 <52527887+SarbojitAMD@users.noreply.github.com> Date: Fri, 20 Dec 2019 02:40:43 +0530 Subject: [PATCH] Fix for windows dtest build failure (#1742) --- include/hip/hcc_detail/hip_vector_types.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/hip/hcc_detail/hip_vector_types.h b/include/hip/hcc_detail/hip_vector_types.h index 1d6d43d957..2079bb7e44 100644 --- a/include/hip/hcc_detail/hip_vector_types.h +++ b/include/hip/hcc_detail/hip_vector_types.h @@ -34,12 +34,12 @@ THE SOFTWARE. #include "hip/hcc_detail/host_defines.h" -#if !defined(_MSC_VER) +#if !defined(_MSC_VER)|| __clang__ #if __has_attribute(ext_vector_type) #define __NATIVE_VECTOR__(n, ...) __attribute__((ext_vector_type(n))) #else #define __NATIVE_VECTOR__(n, ...) [n] -#endif + #endif #if defined(__cplusplus) #include