include: Use GCC-style attributes and builtins on Clang MSVC target.

This commit is contained in:
Jacek Caban 2023-11-17 17:52:53 +01:00 committed by Alexandre Julliard
parent 078cf6a240
commit 616bf93931
Notes: Alexandre Julliard 2023-11-20 22:33:38 +01:00
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Henri Verbeet (@hverbeet)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/484

View File

@ -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)))