#include <stdlib.h>
#include <string.h>
#include <ctype.h>
-#include <time.h>
#include <math.h> // math.pow
+#include "proxmark3.h" // time_t
#include "data.h" // for FILE_PATH_SIZE
-#include "proxmark3.h"
+
+#include <time.h>
+// Handle platform specific includes
+#ifndef _WIN32
+ #include <termios.h>
+ #include <sys/ioctl.h>
+ #include <sys/time.h>
+#else
+ #include <conio.h>
+ #include <windows.h>
+#endif
+
#ifndef BITMASK
# define BITMASK(X) (1 << (X))