mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-19 13:00:42 -07:00
fix reveng: unsigned long on Mingw64 is only 32b, hopefully limits.h can help
This commit is contained in:
parent
f008b965d5
commit
4d16f3e7d2
1 changed files with 5 additions and 4 deletions
|
@ -78,14 +78,15 @@
|
||||||
|
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#if UINTPTR_MAX == UINT64_MAX
|
#include <limits.h>
|
||||||
// 64-bit
|
#if ULONG_MAX == UINT64_MAX
|
||||||
|
// most 64-bit platforms
|
||||||
#define PRESETS 1
|
#define PRESETS 1
|
||||||
#define BMP_BIT 64
|
#define BMP_BIT 64
|
||||||
#define BMP_SUB 32
|
#define BMP_SUB 32
|
||||||
|
|
||||||
#elif UINTPTR_MAX == UINT32_MAX
|
#elif ULONG_MAX == UINT32_MAX
|
||||||
// 32-bit
|
// 32-bit platforms and Mingw64
|
||||||
#define PRESETS 1
|
#define PRESETS 1
|
||||||
#define BMP_BIT 32
|
#define BMP_BIT 32
|
||||||
#define BMP_SUB 16
|
#define BMP_SUB 16
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue