mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-26 16:55:40 +01:00
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
a180926556
commit
32eb58ff29
@ -65,6 +65,8 @@ Bugfix
|
|||||||
returning. Fixes #2431.
|
returning. Fixes #2431.
|
||||||
* Fix typo in net_would_block(). Fixes #528 reported by github-monoculture.
|
* Fix typo in net_would_block(). Fixes #528 reported by github-monoculture.
|
||||||
* Remove redundant include file in timing.c. Fixes #2640 reported by irwir.
|
* Remove redundant include file in timing.c. Fixes #2640 reported by irwir.
|
||||||
|
* Fix build failure when building with mingw on Windows by including
|
||||||
|
stdarg.h where needed. Fixes #2656.
|
||||||
|
|
||||||
API Changes
|
API Changes
|
||||||
* Extend the MBEDTLS_SSL_EXPORT_KEYS to export the handshake randbytes,
|
* Extend the MBEDTLS_SSL_EXPORT_KEYS to export the handshake randbytes,
|
||||||
|
@ -256,6 +256,7 @@ int mbedtls_platform_set_snprintf( int (*snprintf_func)( char * s, size_t n,
|
|||||||
* the destination buffer is too short.
|
* the destination buffer is too short.
|
||||||
*/
|
*/
|
||||||
#if defined(MBEDTLS_PLATFORM_HAS_NON_CONFORMING_VSNPRINTF)
|
#if defined(MBEDTLS_PLATFORM_HAS_NON_CONFORMING_VSNPRINTF)
|
||||||
|
#include <stdarg.h>
|
||||||
/* For Older Windows (inc. MSYS2), we provide our own fixed implementation */
|
/* 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 );
|
int mbedtls_platform_win32_vsnprintf( char *s, size_t n, const char *fmt, va_list arg );
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user