mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 05:13:46 -07:00
fix: osx doesn't like target directive
This commit is contained in:
parent
93dbb24103
commit
690db96a7d
1 changed files with 5 additions and 1 deletions
|
@ -72,8 +72,12 @@ extern int DBGLEVEL;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
//#define RAMFUNC __attribute((long_call, section(".ramfunc")))
|
#if defined(__APPLE__)
|
||||||
|
#define RAMFUNC __attribute((long_call, section(".ramfunc")))
|
||||||
|
#else
|
||||||
#define RAMFUNC __attribute((long_call, section(".ramfunc"))) __attribute__((target("arm")))
|
#define RAMFUNC __attribute((long_call, section(".ramfunc"))) __attribute__((target("arm")))
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#ifndef ROTR
|
#ifndef ROTR
|
||||||
# define ROTR(x,n) (((uintmax_t)(x) >> (n)) | ((uintmax_t)(x) << ((sizeof(x) * 8) - (n))))
|
# define ROTR(x,n) (((uintmax_t)(x) >> (n)) | ((uintmax_t)(x) << ((sizeof(x) * 8) - (n))))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue