fix: compile issue on RasPi (http://www.proxmark.org/forum/viewtopic.php?id=4678)
This commit is contained in:
parent
275111f6ff
commit
bd2797de15
@ -25,7 +25,7 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
struct Crypto1State {uint32_t odd, even;};
|
struct Crypto1State {uint32_t odd, even;};
|
||||||
#if defined(__arm__)
|
#if defined(__arm__) && !defined(__linux__) && !defined(_WIN32) && !defined(__APPLE__) // bare metal ARM Proxmark lacks malloc()/free()
|
||||||
void crypto1_create(struct Crypto1State *s, uint64_t key);
|
void crypto1_create(struct Crypto1State *s, uint64_t key);
|
||||||
#else
|
#else
|
||||||
struct Crypto1State *crypto1_create(uint64_t key);
|
struct Crypto1State *crypto1_create(uint64_t key);
|
||||||
|
|||||||
@ -23,7 +23,7 @@
|
|||||||
#define SWAPENDIAN(x)\
|
#define SWAPENDIAN(x)\
|
||||||
(x = (x >> 8 & 0xff00ff) | (x & 0xff00ff) << 8, x = x >> 16 | x << 16)
|
(x = (x >> 8 & 0xff00ff) | (x & 0xff00ff) << 8, x = x >> 16 | x << 16)
|
||||||
|
|
||||||
#if defined(__arm__) && !defined(__linux__) && !defined(_WIN32) // bare metal ARM lacks malloc()/free()
|
#if defined(__arm__) && !defined(__linux__) && !defined(_WIN32) && !defined(__APPLE__) // bare metal ARM Proxmark lacks malloc()/free()
|
||||||
void crypto1_create(struct Crypto1State *s, uint64_t key)
|
void crypto1_create(struct Crypto1State *s, uint64_t key)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user