mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-01-28 13:05:02 -08:00
include: Use __MINGW_PRINTF_FORMAT when compiling with MinGW.
The default for MinGW is always ms_printf rather than gnu_printf, but if we are using ucrtbase or ANSI stdio, we want gnu_printf.
This commit is contained in:
parent
6b45f290f7
commit
303ce66cef
Notes:
Alexandre Julliard
2022-10-18 00:13:00 +02:00
Approved-by: Henri Verbeet (@hverbeet) Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/18
@ -54,7 +54,11 @@ static inline size_t align(size_t addr, size_t alignment)
|
||||
|
||||
#ifdef __GNUC__
|
||||
# define VKD3D_NORETURN __attribute__((noreturn))
|
||||
# define VKD3D_PRINTF_FUNC(fmt, args) __attribute__((format(printf, fmt, args)))
|
||||
# ifdef __MINGW_PRINTF_FORMAT
|
||||
# define VKD3D_PRINTF_FUNC(fmt, args) __attribute__((format(__MINGW_PRINTF_FORMAT, fmt, args)))
|
||||
# else
|
||||
# define VKD3D_PRINTF_FUNC(fmt, args) __attribute__((format(printf, fmt, args)))
|
||||
# endif
|
||||
# define VKD3D_UNUSED __attribute__((unused))
|
||||
# define VKD3D_UNREACHABLE __builtin_unreachable()
|
||||
#else
|
||||
|
Loading…
x
Reference in New Issue
Block a user