platform: Include stdarg.h where needed
Windows builds also need stdarg.h included when using variadic functions. Fixes #2656
This commit is contained in:
parent
09984c0cc4
commit
ded319d171
2 changed files with 5 additions and 0 deletions
|
@ -2,6 +2,10 @@ mbed TLS ChangeLog (Sorted per branch, date)
|
|||
|
||||
= mbed TLS 2.18.1 branch released 2019-07-12
|
||||
|
||||
Bugfix
|
||||
* Fix build failure when building with mingw on Windows by including
|
||||
stdarg.h where needed. Fixes #2656.
|
||||
|
||||
Changes
|
||||
* Enable building of Mbed TLS as a CMake subproject. Suggested and fixed by
|
||||
Ashley Duncan in #2609.
|
||||
|
|
|
@ -256,6 +256,7 @@ int mbedtls_platform_set_snprintf( int (*snprintf_func)( char * s, size_t n,
|
|||
* the destination buffer is too short.
|
||||
*/
|
||||
#if defined(MBEDTLS_PLATFORM_HAS_NON_CONFORMING_VSNPRINTF)
|
||||
#include <stdarg.h>
|
||||
/* For Older Windows (inc. MSYS2), we provide our own fixed implementation */
|
||||
int mbedtls_platform_win32_vsnprintf( char *s, size_t n, const char *fmt, va_list arg );
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue