Fix for MSVC unsupported #inline keyword
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
diff --git a/library/alignment.h b/library/alignment.h
index e7f11da..986fdaa 100644
--- a/library/alignment.h
+++ b/library/alignment.h
@@ -26,6 +26,11 @@
#include <stdint.h>
#include <string.h>
+#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.