git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@4321
ffa7fe5e-494d-0410-b361-
a75ebd5db220
#endif
#endif
-#ifdef _MSC_VER
+#if defined(_MSC_VER) || (!defined(HAVE_GETTIMEOFDAY) && defined(HAVE_API_WIN32_BASE))
+/**
+ * Impements a simple incomplete version of gettimeofday. Only usefull for messuring
+ * time spans, not the real time of day.
+ */
int gettimeofday(struct timeval *time, void *local)
{
int milliseconds = GetTickCount();
#define NAVIT_types_H
#include <ctype.h>
+#include "config.h"
void strtoupper(char *dest, const char *src);
void strtolower(char *dest, const char *src);
unsigned int iso8601_to_secs(char *iso8601);
char * current_to_iso8601(void);
-#ifdef _MSC_VER
+#if defined(_MSC_VER) || (!defined(HAVE_GETTIMEOFDAY) && defined(HAVE_API_WIN32_BASE))
#include <winsock.h>