Still need to #define inline for MSVC

I only tested with VS2015 earlier, but previous versions apparently still
don't know that standard C99 keyword though it's documented on MSDN...
This commit is contained in:
Manuel Pégourié-Gonnard 2015-07-07 18:33:39 +02:00
parent e540b49a3f
commit 20af64dc2c
6 changed files with 12 additions and 12 deletions

View file

@ -63,9 +63,9 @@
#define mbedtls_free free
#endif
#if defined(__ARMCC_VERSION) && !defined(inline)
#if ( defined(__ARMCC_VERSION) || defined(_MSC_VER) ) && !defined(inline)
#define inline __inline
#endif /* __ARMCC_VERSION */
#endif
/* Implementation that should never be optimized out by the compiler */
static void mbedtls_zeroize( void *v, size_t n ) {