From e516576e75527fb763e800e61dd024461141ec14 Mon Sep 17 00:00:00 2001 From: rpj Date: Sat, 2 Jul 2011 02:18:43 +0000 Subject: See the ChangeLogs --- tests/test.h | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'tests/test.h') diff --git a/tests/test.h b/tests/test.h index 639ee55..042e87b 100644 --- a/tests/test.h +++ b/tests/test.h @@ -61,12 +61,16 @@ #define int64_t _int64 #endif -#ifdef _MSC_VER - #define PTW32_FTIME(x) _ftime64_s(x); -#elif defined(__MINGW32__) && __MSVCRT_VERSION__ >= 0x0601 - #define PTW32_FTIME(x) _ftime64(x); +#if defined(_MSC_VER) && _MSC_VER >= 1400 +# define PTW32_FTIME(x) _ftime64_s(x) +# define PTW32_STRUCT_TIMEB struct __timeb64 +#elif ( defined(_MSC_VER) && _MSC_VER >= 1300 ) || \ + ( defined(__MINGW32__) && __MSVCRT_VERSION__ >= 0x0601 ) +# define PTW32_FTIME(x) _ftime64(x) +# define PTW32_STRUCT_TIMEB struct __timeb64 #else - #define PTW32_FTIME(x) _ftime(x); +# define PTW32_FTIME(x) _ftime(x) +# define PTW32_STRUCT_TIMEB struct _timeb #endif -- cgit v1.2.3