diff --git a/src/jc_test.h b/src/jc_test.h index 2e9b249..57be1e0 100644 --- a/src/jc_test.h +++ b/src/jc_test.h @@ -10,7 +10,7 @@ * * HISTORY: * - * 0.4 2019-08-03 Fix for outputting 64 bit integer values upo error + * 0.4 2019-08-10 Fix for outputting 64 bit integer values upon error * Skipping tests now doesn't output extraneous info * 0.3 2019-04-25 Ansi colors for Win32 * Msys2 + Cygwin support @@ -222,13 +222,18 @@ struct jc_test_params_class : public jc_test_base_class { #endif #if !defined(JC_FMT_U64) - #if defined(__GNUC__) && !defined(__clang__) && __cplusplus == 199711L - // For some reason GCC would always warn about the format not working in c++98 (it does though) - #pragma GCC diagnostic ignored "-Wformat" + #if defined(__ANDROID__) + #define JC_FMT_U64 "%llu" + #define JC_FMT_I64 "%lld" + #else + #if __cplusplus == 199711L && (defined(__GNUC__) && !defined(__clang__)) + // For some reason GCC would always warn about the format not working in c++98 (it does though) + #pragma GCC diagnostic ignored "-Wformat" + #endif + #include + #define JC_FMT_U64 "%" PRIu64 + #define JC_FMT_I64 "%" PRId64 #endif - #include - #define JC_FMT_U64 "%" PRIu64 - #define JC_FMT_I64 "%" PRId64 #endif #define JC_TEST_EVENT_FIXTURE_SETUP 0 @@ -816,7 +821,7 @@ template