fix: osx doesn't like target directive

This commit is contained in:
iceman1001 2020-06-07 22:05:54 +02:00
parent 93dbb24103
commit 690db96a7d

View file

@ -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))))