From 616bf939314e6c50a73932f742dfb779e807ef4c Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Fri, 17 Nov 2023 17:52:53 +0100 Subject: [PATCH] include: Use GCC-style attributes and builtins on Clang MSVC target. --- include/private/vkd3d_common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/private/vkd3d_common.h b/include/private/vkd3d_common.h index 619665ad..5557df41 100644 --- a/include/private/vkd3d_common.h +++ b/include/private/vkd3d_common.h @@ -75,7 +75,7 @@ static inline size_t align(size_t addr, size_t alignment) return (addr + (alignment - 1)) & ~(alignment - 1); } -#ifdef __GNUC__ +#if defined(__GNUC__) || defined(__clang__) # define VKD3D_NORETURN __attribute__((noreturn)) # ifdef __MINGW_PRINTF_FORMAT # define VKD3D_PRINTF_FUNC(fmt, args) __attribute__((format(__MINGW_PRINTF_FORMAT, fmt, args)))