1
0
mirror of https://gitlab.gnome.org/GNOME/libxslt synced 2025-07-29 15:41:13 +03:00

Correctly emulate snprintf on older MSVC versions

This uses the code taken from http://stackoverflow.com/a/8712996/1956010

Fixes bug #756691
https://bugzilla.gnome.org/show_bug.cgi?id=756691
This commit is contained in:
Nick Wellnhofer
2016-02-24 16:47:40 +01:00
parent ea5a2b30c9
commit e75b5da121
2 changed files with 35 additions and 11 deletions

View File

@ -57,9 +57,6 @@
#if defined(_MSC_VER) || defined(__MINGW32__)
#include <winsock2.h>
#define gettimeofday(p1,p2)
#if _MSC_VER < 1900
#define snprintf _snprintf
#endif
#endif /* _MS_VER */
#else /* WIN32 */
#if defined(HAVE_SYS_TIME_H)