Martin Storsjö (@mstorsjo) commented about include/private/vkd3d_common.h:
return (addr + (alignment - 1)) & ~(alignment - 1); }
-#ifdef __GNUC__ +#ifdef __MINGW_PRINTF_FORMAT
I'm not sure if it's worth to move out the whole handling of `VKD3D_PRINTF_FUNC` here, instead of leaving it all where it was, and just change the `#ifdef __GNUC__` into `#if defined(__GNUC__) || defined(__clang__)` here. I guess the only case where there's a behavioural difference, is if one would have `__MINGW_PRINTF_FORMAT` defined but neither `__GNUC__` or `__clang__` defined, i.e. be compiling with actual MSVC, but with mingw headers. That's not really a real case though - so it doesn't really matter, but I was just curious if there's any other advantage, to just keeping the code as it was and just change the one ifdef? -- https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/484#note_52683