+# if defined(__MINGW32__) +# 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
Should we just check whether __MINGW_PRINTF_FORMAT is defined instead of __MINGW32__?