diff options
author | Carmelo Amoroso <carmelo.amoroso@st.com> | 2008-01-12 17:59:10 +0000 |
---|---|---|
committer | Carmelo Amoroso <carmelo.amoroso@st.com> | 2008-01-12 17:59:10 +0000 |
commit | 5952806e050a8494cdff3368b144de206def8780 (patch) | |
tree | 579da5644618b543ba298804c01ccf10df2440d0 | |
parent | cf3299b4a7621128279ec8a6ab928e95fd5848b3 (diff) |
Make sh4 build works again adding a temporary work-around
iby redefining __always_inline to inline until gcc 4.x.x will get
fixed.
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
-rw-r--r-- | ldso/ldso/sh/dl-syscalls.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/ldso/ldso/sh/dl-syscalls.h b/ldso/ldso/sh/dl-syscalls.h index 7902f362d..d3672512f 100644 --- a/ldso/ldso/sh/dl-syscalls.h +++ b/ldso/ldso/sh/dl-syscalls.h @@ -4,8 +4,11 @@ extern int _dl_errno; #undef __set_errno #define __set_errno(X) {(_dl_errno) = (X);} -#warning !!! __always_inline redefined waiting for the fixed gcc -#ifdef __always_inline -#undef __always_inline -#define __always_inline inline + +#if __GNUC_PREREQ (4, 1) +#warning !!! gcc 4.1 and later have problems with __always_inline so redefined as inline +# ifdef __always_inline +# undef __always_inline +# define __always_inline inline +# endif #endif |