fixed definitions of INLINE macros for old gcc

This commit is contained in:
2014-04-21 15:34:57 +00:00
parent cfb3eb93ec
commit 257dbbb586
3 changed files with 10 additions and 6 deletions

View File

@ -42,7 +42,7 @@
# undef QSE_HAVE_INLINE
#endif
#if defined(__GNUC__)
#if defined(__GNUC__) && defined(__GNUC_GNU_INLINE__)
# define QSE_INLINE_ALWAYS inline __attribute__((__always_inline__))
# define QSE_HAVE_INLINE_ALWAYS
#elif defined(_MSC_VER) || (defined(__CC_ARM) || defined(__ARMCC__))
@ -53,7 +53,7 @@
# undef QSE_HAVE_INLINE_ALWAYS
#endif
#if defined(__GNUC__)
#if defined(__GNUC__) && defined(__GNUC_GNU_INLINE__)
# define QSE_INLINE_NEVER inline __attribute__((__noinline__))
# define QSE_HAVE_INLINE_NEVER
#elif (defined(__CC_ARM) || defined(__ARMCC__))