crack5opencl ,.. dont have this fct in PS. maybe a linker problem but lets just add it for now

This commit is contained in:
iceman1001 2021-04-09 15:28:09 +02:00
parent 36c6c0a3d0
commit a7fad57060

View file

@ -35,6 +35,18 @@
#include "hitag2.h"
#include "dolphin_macro.h"
#if defined(__MINGW64__)
#define timersub(a, b, result) \
do { \
(result)->tv_sec = (a)->tv_sec - (b)->tv_sec; \
(result)->tv_usec = (a)->tv_usec - (b)->tv_usec; \
if ((result)->tv_usec < 0) { \
--(result)->tv_sec; \
(result)->tv_usec += 1000000;\
} \
} while (0)
#endif
#define MAX_BITSLICES 32
#define VECTOR_SIZE (MAX_BITSLICES/8)