diff options
author | Joel Sherrill <joel@rtems.org> | 2017-04-24 12:00:43 -0500 |
---|---|---|
committer | Joel Sherrill <joel@rtems.org> | 2017-04-24 12:00:59 -0500 |
commit | b261dec802e21bc1836a2c5ec6569d63d252c125 (patch) | |
tree | 891aed25baaec0711ae703c66de89ea793d16e83 /cpukit/libmisc/xz | |
parent | 485222e633da85047daa1dafd1732b2b4750e933 (diff) |
xz/xz_config.h: Address unable to inline warning
Diffstat (limited to 'cpukit/libmisc/xz')
-rw-r--r-- | cpukit/libmisc/xz/xz_config.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cpukit/libmisc/xz/xz_config.h b/cpukit/libmisc/xz/xz_config.h index 78dcc5f247..41faf4e69b 100644 --- a/cpukit/libmisc/xz/xz_config.h +++ b/cpukit/libmisc/xz/xz_config.h @@ -62,6 +62,10 @@ typedef unsigned char bool; * NOTE: System headers on GNU/Linux may #define this macro already, * so if you want to change it, you need to #undef it first. */ +#ifdef __rtems__ +# undef __always_inline +# define __always_inline inline +#else #ifndef __always_inline # ifdef __GNUC__ # define __always_inline \ @@ -70,6 +74,7 @@ typedef unsigned char bool; # define __always_inline inline # endif #endif +#endif /* Inline functions to access unaligned unsigned 32-bit integers */ #ifndef get_unaligned_le32 |