Module: vkd3d Branch: master Commit: 616bf939314e6c50a73932f742dfb779e807ef4c URL: https://gitlab.winehq.org/wine/vkd3d/-/commit/616bf939314e6c50a73932f742dfb7...
Author: Jacek Caban jacek@codeweavers.com Date: Fri Nov 17 17:52:53 2023 +0100
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)))