Fix for MSVC unsupported #inline keyword

Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
This commit is contained in:
Dave Rodgman 2022-11-25 09:16:41 +00:00
parent b8c4a0d940
commit 8f6583d836

View File

@ -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.