From b261dec802e21bc1836a2c5ec6569d63d252c125 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 24 Apr 2017 12:00:43 -0500 Subject: xz/xz_config.h: Address unable to inline warning --- cpukit/libmisc/xz/xz_config.h | 5 +++++ 1 file changed, 5 insertions(+) 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 -- cgit v1.2.3