diff --git a/include/common.h b/include/common.h index 3c6245e52..cb0962b56 100644 --- a/include/common.h +++ b/include/common.h @@ -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))))