mirror of
				https://github.com/Mbed-TLS/mbedtls.git
				synced 2025-10-30 10:45:34 +03: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:
		
				
					committed by
					
						 Ronald Cron
						Ronald Cron
					
				
			
			
				
	
			
			
			
						parent
						
							381900520f
						
					
				
				
					commit
					673e1eb608
				
			| @@ -56,6 +56,10 @@ int main(void) | |||||||
|  |  | ||||||
| #if defined(_WIN32) && !defined(EFIX64) && !defined(EFI32) | #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 <windows.h> | ||||||
| #include <process.h> | #include <process.h> | ||||||
|  |  | ||||||
|   | |||||||
| @@ -50,6 +50,11 @@ int main(void) | |||||||
| /* For select() */ | /* For select() */ | ||||||
| #if (defined(_WIN32) || defined(_WIN32_WCE)) && !defined(EFIX64) && \ | #if (defined(_WIN32) || defined(_WIN32_WCE)) && !defined(EFIX64) && \ | ||||||
|     !defined(EFI32) |     !defined(EFI32) | ||||||
|  |  | ||||||
|  | #if defined(_MSC_VER) | ||||||
|  | #pragma warning(disable : 5105) // warning inside winbase.h in C11 mode | ||||||
|  | #endif | ||||||
|  |  | ||||||
| #include <winsock2.h> | #include <winsock2.h> | ||||||
| #include <windows.h> | #include <windows.h> | ||||||
| #if defined(_MSC_VER) | #if defined(_MSC_VER) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user