From 690db96a7d732e3eaf4c8b9ecab87f31a95e6a9e Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Sun, 7 Jun 2020 22:05:54 +0200 Subject: [PATCH] fix: osx doesn't like target directive --- include/common.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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))))