mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-02-22 15:16:19 +08: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
|
||||
|
||||
|
||||
//#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")))
|
||||
#endif
|
||||
|
||||
|
||||
#ifndef ROTR
|
||||
# define ROTR(x,n) (((uintmax_t)(x) >> (n)) | ((uintmax_t)(x) << ((sizeof(x) * 8) - (n))))
|
||||
|
|
Loading…
Reference in a new issue