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

Fix Windows compiler warnings

Fixes bug 788317. Thanks to J. Peter Mugaas for the initial patch.
This commit is contained in:
Nick Wellnhofer
2017-10-25 16:21:23 +02:00
parent 8b4babb8f7
commit 8760bb2276
8 changed files with 33 additions and 34 deletions

View File

@ -54,18 +54,11 @@
#include <libexslt/exsltconfig.h>
#if defined(WIN32) && !defined (__CYGWIN__)
#if defined(_MSC_VER) || defined(__MINGW32__)
#include <winsock2.h>
#define gettimeofday(p1,p2)
#endif /* _MS_VER */
#else /* WIN32 */
#if defined(HAVE_SYS_TIME_H)
#include <sys/time.h>
#elif defined(HAVE_TIME_H)
#include <time.h>
#endif
#endif /* WIN32 */
#ifdef HAVE_SYS_TIMEB_H
#include <sys/timeb.h>
@ -595,7 +588,7 @@ main(int argc, char **argv)
(!strcmp(argv[i], "--output"))) {
i++;
#if defined(WIN32) || defined (__CYGWIN__)
output = xmlCanonicPath(argv[i]);
output = (char *) xmlCanonicPath((xmlChar *) argv[i]);
if (output == NULL)
#endif
output = (char *) xmlStrdup((xmlChar *) argv[i]);