include: Don't use the printf format attribute when compiling against msvcrt and not cross-compiling.

Since it will spit out bogus warnings in the case we use Microsoft-specific
extensions.

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura 2020-01-28 22:56:03 -06:00 committed by Alexandre Julliard
parent 56995dd322
commit 6895470ab0
1 changed files with 4 additions and 0 deletions

View File

@ -88,7 +88,11 @@ struct __wine_debug_channel
#define __WINE_DBG_LOG(args...) \
wine_dbg_log( __dbcl, __dbch, __FUNCTION__, args); } } while(0)
#if !defined(__WINE_USE_MSVCRT) || defined(__MINGW32__)
#define __WINE_PRINTF_ATTR(fmt,args) __attribute__((format (printf,fmt,args)))
#else
#define __WINE_PRINTF_ATTR(fmt,args)
#endif
#ifdef WINE_NO_TRACE_MSGS