[rtems commit] xz/xz_config.h: Address unable to inline warning

Joel Sherrill joel at rtems.org
Mon Apr 24 22:21:55 UTC 2017


Module:    rtems
Branch:    master
Commit:    b261dec802e21bc1836a2c5ec6569d63d252c125
Changeset: http://git.rtems.org/rtems/commit/?id=b261dec802e21bc1836a2c5ec6569d63d252c125

Author:    Joel Sherrill <joel at rtems.org>
Date:      Mon Apr 24 12:00:43 2017 -0500

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 78dcc5f..41faf4e 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



More information about the vc mailing list