From f94d2b295f1a17a791744f15d3ee45b73beb852f Mon Sep 17 00:00:00 2001 From: Jef Driesen Date: Thu, 6 May 2010 08:35:45 +0000 Subject: [PATCH] Fix the 64bit integer type for the mingw compiler. The mingw native 64bit integer type is long long. The msvc __int64 type is supported for compatibility reasons, but requires including one of the standard C header files. --- src/datetime.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/datetime.h b/src/datetime.h index ba4dcfd..ebd191e 100644 --- a/src/datetime.h +++ b/src/datetime.h @@ -26,7 +26,7 @@ extern "C" { #endif /* __cplusplus */ -#ifdef _WIN32 +#if defined (_WIN32) && !defined (__GNUC__) typedef __int64 dc_ticks_t; #else typedef long long int dc_ticks_t;