fix: osx doesn't like target directive
This commit is contained in:
@@ -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))))
|
||||||
|
|||||||
Reference in New Issue
Block a user