|
33 | 33 | #include <openthread/config.h> |
34 | 34 | #include <openthread/platform/logging.h> |
35 | 35 | #include <openthread/platform/memory.h> |
| 36 | +#include <stdio.h> |
36 | 37 |
|
37 | 38 | #if defined(_WIN32) |
38 | 39 | #include <stdarg.h> |
@@ -189,7 +190,7 @@ __inline int windows_kernel_snprintf(char * s, size_t n, const char * format, .. |
189 | 190 | //#define MBEDTLS_PLATFORM_TIME_ALT |
190 | 191 | //#define MBEDTLS_PLATFORM_FPRINTF_ALT |
191 | 192 | //#define MBEDTLS_PLATFORM_PRINTF_ALT |
192 | | -//#define MBEDTLS_PLATFORM_SNPRINTF_ALT |
| 193 | +#define MBEDTLS_PLATFORM_SNPRINTF_ALT |
193 | 194 | //#define MBEDTLS_PLATFORM_NV_SEED_ALT |
194 | 195 |
|
195 | 196 | /** |
@@ -2557,7 +2558,7 @@ __inline int windows_kernel_snprintf(char * s, size_t n, const char * format, .. |
2557 | 2558 | //#define MBEDTLS_PLATFORM_STD_FPRINTF fprintf /**< Default fprintf to use, can be undefined */ |
2558 | 2559 | //#define MBEDTLS_PLATFORM_STD_PRINTF printf /**< Default printf to use, can be undefined */ |
2559 | 2560 | /* Note: your snprintf must correclty zero-terminate the buffer! */ |
2560 | | -//#define MBEDTLS_PLATFORM_STD_SNPRINTF snprintf /**< Default snprintf to use, can be undefined */ |
| 2561 | +#define MBEDTLS_PLATFORM_STD_SNPRINTF snprintf /**< Default snprintf to use, can be undefined */ |
2561 | 2562 | //#define MBEDTLS_PLATFORM_STD_EXIT_SUCCESS 0 /**< Default exit value to use, can be undefined */ |
2562 | 2563 | //#define MBEDTLS_PLATFORM_STD_EXIT_FAILURE 1 /**< Default exit value to use, can be undefined */ |
2563 | 2564 | //#define MBEDTLS_PLATFORM_STD_NV_SEED_READ mbedtls_platform_std_nv_seed_read /**< Default nv_seed_read function to use, can be undefined */ |
|
0 commit comments