diff --git a/include/nuttx/compiler.h b/include/nuttx/compiler.h index 7e1407d32b..dcafb0a6e9 100644 --- a/include/nuttx/compiler.h +++ b/include/nuttx/compiler.h @@ -148,7 +148,11 @@ * (even though -mlong-calls does not appear in the compilation options) */ -# define farcall_function __attribute__ ((long_call)) +# if defined(__clang__) +# define farcall_function +# else +# define farcall_function __attribute__ ((long_call)) +# endif /* Code locate */