From f7876e2caefa2434ee5c191225a30e1a28d7e73c Mon Sep 17 00:00:00 2001 From: martin-s Date: Tue, 25 Jan 2011 16:02:24 +0000 Subject: Fix:Core:MSVC fixes git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@4027 ffa7fe5e-494d-0410-b361-a75ebd5db220 --- navit/support/ezxml/ezxml.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'navit/support') diff --git a/navit/support/ezxml/ezxml.c b/navit/support/ezxml/ezxml.c index 14754f15..216afdd9 100644 --- a/navit/support/ezxml/ezxml.c +++ b/navit/support/ezxml/ezxml.c @@ -27,9 +27,11 @@ #include #include #include -#ifndef _MSC_VER +#include +#include "config.h" +#ifdef HAVE_UNISTD_H #include -#endif /* _MSC_VER */ +#endif #include #ifndef EZXML_NOMMAP #include @@ -142,7 +144,7 @@ ezxml_t ezxml_err(ezxml_root_t root, char *s, const char *err, ...) char *t, fmt[EZXML_ERRL]; for (t = root->s; t < s; t++) if (*t == '\n') line++; - snprintf(fmt, EZXML_ERRL, "[error near line %d]: %s", line, err); + g_snprintf(fmt, EZXML_ERRL, "[error near line %d]: %s", line, err); va_start(ap, err); vsnprintf(root->err, EZXML_ERRL, fmt, ap); -- cgit v1.2.1