[Mesa-dev] [PATCH mesa 12/13] util: use standard name for snprintf()
Emil Velikov
emil.l.velikov at gmail.com
Wed Nov 21 14:41:41 UTC 2018
On 2018/11/20, Eric Engestrom wrote:
> +#define snprintf util_snprintf
> static inline int
> PRINTFLIKE(3, 4)
> util_snprintf(char *str, size_t size, const char *format, ...)
>From the docs[1]:
"Beginning with the UCRT in Visual Studio 2015 and Windows 10, snprintf is no longer
identical to _snprintf. The snprintf function behavior is now C99 standard compliant."
We already require MSVC 2017, although not sure if how well we go for "and Windows 10"
HTH
Emil
[1] https://docs.microsoft.com/en-gb/cpp/c-runtime-library/reference/snprintf-snprintf-snprintf-l-snwprintf-snwprintf-l?view=vs-2017
More information about the mesa-dev
mailing list