[Mesa-dev] [PATCH mesa 13/13] util: use standard name for vsnprintf()
Emil Velikov
emil.l.velikov at gmail.com
Wed Nov 21 14:44:16 UTC 2018
On 2018/11/20, Eric Engestrom wrote:
> @@ -65,6 +65,7 @@ util_strchrnul(const char *s, char c)
>
> #ifdef _WIN32
>
> +#define vsnprintf util_vsnprintf
> static inline int
> util_vsnprintf(char *str, size_t size, const char *format, va_list ap)
Analogous to previous patch, MSVC seems to be compliant?
"Beginning with the UCRT in Visual Studio 2015 and Windows 10,
vsnprintf is no longer identical to _vsnprintf. The vsnprintf function
complies with the C99 standard; "
HTH
Emil
[1] https://docs.microsoft.com/en-gb/cpp/c-runtime-library/reference/vsnprintf-vsnprintf-vsnprintf-l-vsnwprintf-vsnwprintf-l?view=vs-2017
More information about the mesa-dev
mailing list