mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-02-24 18:26:58 +00:00
Add compatibility macro for the inline keyword in error.h
MSVC is not fully compliant with C99 where the 'inline' keyword is defined. Add a macro to define an alternative for non-compliant compilers. Signed-off-by: Chris Jones <christopher.jones@arm.com>
This commit is contained in:
parent
ef01852d65
commit
defe10df52
|
@ -30,6 +30,11 @@
|
||||||
|
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
|
|
||||||
|
#if ( defined(__ARMCC_VERSION) || defined(_MSC_VER) ) && \
|
||||||
|
!defined(inline) && !defined(__cplusplus)
|
||||||
|
#define inline __inline
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Error code layout.
|
* Error code layout.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue