diff --git a/library/alignment.h b/library/alignment.h index e7f11da40..986fdaa95 100644 --- a/library/alignment.h +++ b/library/alignment.h @@ -26,6 +26,11 @@ #include #include +#if ( defined(__ARMCC_VERSION) || defined(_MSC_VER) ) && \ + !defined(inline) && !defined(__cplusplus) +#define inline __inline +#endif + /** * Read the unsigned 32 bits integer from the given address, which need not * be aligned.