mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-01-12 11:05:37 +00:00
Use correct version of snprintf on Windows
platform.h defines MBEDTLS_PLATFORM_STD_SNPRINTF based on _WIN32. But while defining macro mbedtls_snprintf it sets it to STD C snprintf that is deprecated on Windows.
This commit is contained in:
parent
be97c9cc85
commit
26838608f8
|
@ -210,7 +210,7 @@ int mbedtls_platform_set_snprintf( int (*snprintf_func)( char * s, size_t n,
|
||||||
#if defined(MBEDTLS_PLATFORM_SNPRINTF_MACRO)
|
#if defined(MBEDTLS_PLATFORM_SNPRINTF_MACRO)
|
||||||
#define mbedtls_snprintf MBEDTLS_PLATFORM_SNPRINTF_MACRO
|
#define mbedtls_snprintf MBEDTLS_PLATFORM_SNPRINTF_MACRO
|
||||||
#else
|
#else
|
||||||
#define mbedtls_snprintf snprintf
|
#define mbedtls_snprintf MBEDTLS_PLATFORM_STD_SNPRINTF
|
||||||
#endif /* MBEDTLS_PLATFORM_SNPRINTF_MACRO */
|
#endif /* MBEDTLS_PLATFORM_SNPRINTF_MACRO */
|
||||||
#endif /* MBEDTLS_PLATFORM_SNPRINTF_ALT */
|
#endif /* MBEDTLS_PLATFORM_SNPRINTF_ALT */
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue