include: Windows SDK C headers have snprintf.

And it is a function prototype, so we can't use #ifndef.

Signed-off-by: Stefan Dösinger <stefan@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Stefan Dösinger 2019-11-17 13:43:14 +01:00 committed by Alexandre Julliard
parent af7ace7990
commit 8101d25118
1 changed files with 7 additions and 1 deletions

View File

@ -69,7 +69,13 @@
#endif
#define popen _popen
#define pclose _pclose
#define snprintf _snprintf
/* The UCRT headers in the Windows SDK #error out if we #define snprintf.
* The C headers that came with previous Visual Studio versions do not have
* snprintf. Check for VS 2015, which appears to be the first version to
* use the UCRT headers by default. */
#if _MSC_VER < 1900
# define snprintf _snprintf
#endif
#define strtoll _strtoi64
#define strtoull _strtoui64
#define strncasecmp _strnicmp