summaryrefslogtreecommitdiff
path: root/tests/test.h
diff options
context:
space:
mode:
authorrpj <rpj>2011-07-02 02:18:43 +0000
committerrpj <rpj>2011-07-02 02:18:43 +0000
commite516576e75527fb763e800e61dd024461141ec14 (patch)
treef24a77bca51ebf42b2198342033b705b7e660ce4 /tests/test.h
parentc34bf0c659b945f0c012b1cdd7ea80de8292c608 (diff)
See the ChangeLogs
Diffstat (limited to 'tests/test.h')
-rw-r--r--tests/test.h14
1 files changed, 9 insertions, 5 deletions
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