Merge pull request #4843 from tmael/sp_diab

Support (no)inline with Wind River Diab compiler
This commit is contained in:
David Garske
2022-03-08 10:00:16 -08:00
committed by GitHub
2 changed files with 7 additions and 1 deletions

View File

@ -49,7 +49,7 @@
#define SP_NOINLINE __declspec(noinline)
#elif defined(__ICCARM__) || defined(__IAR_SYSTEMS_ICC__)
#define SP_NOINLINE _Pragma("inline = never")
#elif defined(__GNUC__) || defined(__KEIL__)
#elif defined(__GNUC__) || defined(__KEIL__) || defined(__DCC__)
#define SP_NOINLINE __attribute__((noinline))
#else
#define SP_NOINLINE

View File

@ -259,6 +259,12 @@ decouple library dependencies with standard string, memory and so on.
#endif
#elif defined(__CCRX__)
#define WC_INLINE inline
#elif defined(__DCC__)
#ifndef __cplusplus
#define WC_INLINE __inline__
#else
#define WC_INLINE inline
#endif
#else
#define WC_INLINE
#endif