diff options
author | rpj <rpj> | 2011-03-03 23:37:20 +0000 |
---|---|---|
committer | rpj <rpj> | 2011-03-03 23:37:20 +0000 |
commit | e470da85f7b9426eea03d66086c2822bf29e9b05 (patch) | |
tree | b3747768258dc62752612327904be1f1067d5c7f /tests/test.h | |
parent | 1170175259781ece4a8d99d517230f4b9ecb7b50 (diff) |
Some cleanups, mostly x86_64 compat plus interlocked macros
Diffstat (limited to 'tests/test.h')
-rw-r--r-- | tests/test.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/test.h b/tests/test.h index dc63eb4..a6c2b60 100644 --- a/tests/test.h +++ b/tests/test.h @@ -61,6 +61,14 @@ #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); +#else + #define PTW32_FTIME(x) _ftime(x); +#endif + const char * error_string[] = { "ZERO_or_EOK", |