FIX: the time_t calls under mingw needs a #define _USE_32BIT_TIME_T 1 to be correct. It seems to work in "hf mf mifare" but not in "hf mf hardnested"

This commit is contained in:
iceman1001 2016-10-29 21:42:46 +02:00
commit b403c30091
9 changed files with 88 additions and 25 deletions

View file

@ -16,11 +16,19 @@
#include <stdlib.h>
#include <stdio.h>
#include <stdbool.h>
#include <time.h>
#include <readline/readline.h>
#include <pthread.h>
#include <math.h>
#include <complex.h>
// Handle platform specific includes
#ifndef _WIN32
#include <sys/time.h>
#else
#include <time.h>
#include <windows.h>
#endif
#include "loclass/cipherutils.h"
#include "util.h"
#include "cmdmain.h"