summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel@rtems.org>2017-04-24 12:00:43 -0500
committerJoel Sherrill <joel@rtems.org>2017-04-24 12:00:59 -0500
commitb261dec802e21bc1836a2c5ec6569d63d252c125 (patch)
tree891aed25baaec0711ae703c66de89ea793d16e83
parentgenmcf548x/irq/irq.c: Fix incompatible pointer warning (diff)
downloadrtems-b261dec802e21bc1836a2c5ec6569d63d252c125.tar.bz2
xz/xz_config.h: Address unable to inline warning
-rw-r--r--cpukit/libmisc/xz/xz_config.h5
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