From d8fcac228069b2cca554178619c288c5ef1c1425 Mon Sep 17 00:00:00 2001 From: martin-s Date: Mon, 24 Jan 2011 16:00:43 +0000 Subject: [PATCH] Fix:Core:MSVC fixes|Thanks chollya git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@3975 ffa7fe5e-494d-0410-b361-a75ebd5db220 --- navit/navit/debug.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/navit/navit/debug.c b/navit/navit/debug.c index fe35281..0548a3c 100644 --- a/navit/navit/debug.c +++ b/navit/navit/debug.c @@ -23,8 +23,10 @@ #include #include #include -#include #include +#ifndef _MSC_VER +#include +#endif /* _MSC_VER */ #include "config.h" #include "file.h" #include "item.h" @@ -34,7 +36,7 @@ #include #endif -#ifdef HAVE_API_WIN32_CE +#if defined HAVE_API_WIN32_CE || defined _MSC_VER #include #include #endif @@ -163,7 +165,7 @@ debug_level_get(const char *name) static void debug_timestamp(char *buffer) { -#ifdef HAVE_API_WIN32_CE +#if defined HAVE_API_WIN32_CE || defined _MSC_VER LARGE_INTEGER counter, frequency; double val; QueryPerformanceCounter(&counter); @@ -190,7 +192,7 @@ static void debug_timestamp(char *buffer) void debug_vprintf(int level, const char *module, const int mlen, const char *function, const int flen, int prefix, const char *fmt, va_list ap) { -#ifdef HAVE_API_WIN32_CE +#if defined HAVE_API_WIN32_CE || defined _MSC_VER char buffer[4096]; #else char buffer[mlen+flen+3]; -- 2.7.4