From 1ca5dce0f4d297d739010ca5fc5954683fa3ec1a Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Wed, 16 Nov 2016 18:36:21 +0100 Subject: [PATCH] FIX: removed some warnings about time_t in non-windows systems. This appeared since I fiddled in proxmark.h --- client/util.c | 4 ---- client/util.h | 12 ++++++++++++ 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/client/util.c b/client/util.c index a6ba8e81..3a7cbac4 100644 --- a/client/util.c +++ b/client/util.c @@ -12,9 +12,6 @@ #define MAX_BIN_BREAK_LENGTH (3072+384+1) #ifndef _WIN32 -#include -#include - int ukbhit(void) { int cnt = 0; int error; @@ -38,7 +35,6 @@ int ukbhit(void) { } #else -#include int ukbhit(void) { return kbhit(); } diff --git a/client/util.h b/client/util.h index 7a2fd46f..de1fa095 100644 --- a/client/util.h +++ b/client/util.h @@ -17,6 +17,18 @@ #include "proxmark3.h" // time_t #include "data.h" // for FILE_PATH_SIZE +// Handle platform specific includes +#ifndef _WIN32 + #include + #include + #include +#else + #include + #include + #include +#endif + + #ifndef BITMASK # define BITMASK(X) (1 << (X)) #endif -- 2.39.5