diff --git a/client/cmdhfmf.c b/client/cmdhfmf.c index 2e1b2186c..0e3024a07 100644 --- a/client/cmdhfmf.c +++ b/client/cmdhfmf.c @@ -1230,10 +1230,10 @@ int CmdHF14AMfChk(const char *Cmd) { t1 = clock() - t1; time(&end); unsigned long elapsed_time = difftime(end, start); - if ( t1 > 0 ) - printf("\nTime in checkkeys: %.0f ticks %u seconds\n", (float)t1, elapsed_time); + PrintAndLog("\nTime in checkkeys: %.0f ticks %u seconds\n", (float)t1, elapsed_time); + // 20160116 If Sector A is found, but not Sector B, try just reading it of the tag? if ( keyType != 1 ) { PrintAndLog("testing to read key B..."); diff --git a/client/proxmark3.h b/client/proxmark3.h index 6665b75b7..89cac8781 100644 --- a/client/proxmark3.h +++ b/client/proxmark3.h @@ -12,6 +12,10 @@ #ifndef PROXMARK3_H__ #define PROXMARK3_H__ +#ifdef __WIN32 +// for MINGW32 environments + #define _USE_32BIT_TIME_T 1 +#endif #define __STDC_FORMAT_MACROS 1 #include #define lx PRIx32 diff --git a/client/uart.h b/client/uart.h index 747c0f26a..d520e7f4b 100644 --- a/client/uart.h +++ b/client/uart.h @@ -37,7 +37,6 @@ #include #include #include - #include #include diff --git a/client/ui.h b/client/ui.h index b5133ab42..3417f3629 100644 --- a/client/ui.h +++ b/client/ui.h @@ -10,6 +10,7 @@ #ifndef UI_H__ #define UI_H__ + #define _USE_MATH_DEFINES #include #include diff --git a/client/util.h b/client/util.h index 22156db99..e492fd494 100644 --- a/client/util.h +++ b/client/util.h @@ -13,7 +13,7 @@ #include #include #include -#include +#include #include "data.h" //for FILE_PATH_SIZE #ifndef ROTR