Skip to content

Commit 4fd7a29

Browse files
committed
[SYCL][COMPAT] Reduced verbosity of macro definitions
1 parent b462ba4 commit 4fd7a29

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

sycl/include/syclcompat/defs.hpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,10 @@ template <int Arg> class syclcompat_kernel_scalar;
4040
#if defined(_MSC_VER)
4141
#define __syclcompat_align__(n) __declspec(align(n))
4242
#define __syclcompat_inline__ __forceinline
43+
#define __syclcompat_noinline__ __declspec(noinline)
4344
#else
4445
#define __syclcompat_align__(n) __attribute__((aligned(n)))
4546
#define __syclcompat_inline__ __inline__ __attribute__((always_inline))
46-
#endif
47-
48-
#if defined(_MSC_VER)
49-
#define __syclcompat_noinline__ __declspec(noinline)
50-
#else
5147
#define __syclcompat_noinline__ __attribute__((noinline))
5248
#endif
5349

0 commit comments

Comments
 (0)