mirror of
https://github.com/espressif/mbedtls.git
synced 2025-07-09 13:44:13 +08:00
Fix build test programs in MSVC (due to a warning treated as error in winbase.h)
Signed-off-by: Alvaro Segura <alvaro.segura@gmail.com>
This commit is contained in:
parent
381900520f
commit
673e1eb608
@ -56,6 +56,10 @@ int main(void)
|
||||
|
||||
#if defined(_WIN32) && !defined(EFIX64) && !defined(EFI32)
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
#pragma warning(disable : 5105) // warning inside winbase.h in C11 mode
|
||||
#endif
|
||||
|
||||
#include <windows.h>
|
||||
#include <process.h>
|
||||
|
||||
|
@ -50,6 +50,11 @@ int main(void)
|
||||
/* For select() */
|
||||
#if (defined(_WIN32) || defined(_WIN32_WCE)) && !defined(EFIX64) && \
|
||||
!defined(EFI32)
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
#pragma warning(disable : 5105) // warning inside winbase.h in C11 mode
|
||||
#endif
|
||||
|
||||
#include <winsock2.h>
|
||||
#include <windows.h>
|
||||
#if defined(_MSC_VER)
|
||||
|
Loading…
x
Reference in New Issue
Block a user