summaryrefslogtreecommitdiff
path: root/navit/debug.c
diff options
context:
space:
mode:
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2011-01-24 16:00:43 +0000
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2011-01-24 16:00:43 +0000
commit82469eb4b0ef88e69b7bd4a002bfd660ce9dfaf8 (patch)
tree7c25206439e93928988b0e2ba3791459eb87b313 /navit/debug.c
parentf76c1622042cea6cb98897101ec876e66f8b017a (diff)
downloadnavit-82469eb4b0ef88e69b7bd4a002bfd660ce9dfaf8.tar.gz
Fix:Core:MSVC fixes|Thanks chollya
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@3975 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/debug.c')
-rw-r--r--navit/debug.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/navit/debug.c b/navit/debug.c
index fe3528149..0548a3cc9 100644
--- a/navit/debug.c
+++ b/navit/debug.c
@@ -23,8 +23,10 @@
#include <stdlib.h>
#include <string.h>
#include <time.h>
-#include <sys/time.h>
#include <glib.h>
+#ifndef _MSC_VER
+#include <sys/time.h>
+#endif /* _MSC_VER */
#include "config.h"
#include "file.h"
#include "item.h"
@@ -34,7 +36,7 @@
#include <android/log.h>
#endif
-#ifdef HAVE_API_WIN32_CE
+#if defined HAVE_API_WIN32_CE || defined _MSC_VER
#include <windows.h>
#include <windowsx.h>
#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];