mirror of
				https://github.com/cuberite/polarssl.git
				synced 2025-11-03 20:22:59 -05:00 
			
		
		
		
	Only redefine _WIN32_WINNT macro when < 0x0501
This commit is contained in:
		
							parent
							
								
									80aa3b8d65
								
							
						
					
					
						commit
						df60856702
					
				@ -47,11 +47,12 @@
 | 
			
		||||
 | 
			
		||||
#define IS_EINTR( ret ) ( ( ret ) == WSAEINTR )
 | 
			
		||||
 | 
			
		||||
#ifdef _WIN32_WINNT
 | 
			
		||||
#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x0501)
 | 
			
		||||
#undef _WIN32_WINNT
 | 
			
		||||
#endif
 | 
			
		||||
/* Enables getaddrinfo() & Co */
 | 
			
		||||
#define _WIN32_WINNT 0x0501
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#include <ws2tcpip.h>
 | 
			
		||||
 | 
			
		||||
#include <winsock2.h>
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user