--- ctapi-cyberjack-3.3.3.orig/include/cjeca32.h 2026-10-17 21:42:24.612465284 +0200 +++ ctapi-cyberjack-3.3.3/include/cjeca32.h 2026-10-17 21:42:38.676777605 +0200 @@ -191,6 +191,13 @@ typedef __int8 int8_t;*/ #define SCARD_COLD_RESET 0x0001 #define SCARD_WARM_RESET 0x0002 +#ifdef __cplusplus +/* the C++ headers use max(), include them before the macro */ +#include +#include +#include +#include +#endif # define max(a, b) ((a>b)?a:b) #define Sleep(ms) usleep(ms*1000) --- ctapi-cyberjack-3.3.3.orig/cjeca32/stdafx.h 2026-10-17 21:58:24.226914669 +0200 +++ ctapi-cyberjack-3.3.3/cjeca32/stdafx.h 2026-10-17 21:58:24.235013948 +0200 @@ -165,6 +165,13 @@ #define SCARD_COLD_RESET 0x0001 #define SCARD_WARM_RESET 0x0002 +#ifdef __cplusplus +/* the C++ headers use max(), include them before the macro */ +#include +#include +#include +#include +#endif # define max(a, b) ((a>b)?a:b) #define Sleep(ms) usleep(ms*1000) --- ctapi-cyberjack-3.3.3.orig/checksuite/cm_distri.cpp 2026-10-18 00:54:25.766216366 +0200 +++ ctapi-cyberjack-3.3.3/checksuite/cm_distri.cpp 2026-10-18 00:54:25.775257354 +0200 @@ -19,6 +19,7 @@ #include #include #include +#include