mirror of
				https://github.com/libssh2/libssh2.git
				synced 2025-11-03 22:13:11 +03:00 
			
		
		
		
	windows build: add define to avoid compiler warning
A recent mingw compiler has started to complain on "#warning Please include winsock2.h before windows.h" unless the magic define is set first. Reported by: Vincent Torri Bug: http://www.libssh2.org/mail/libssh2-devel-archive-2011-10/0064.shtml
This commit is contained in:
		@@ -44,7 +44,11 @@
 | 
				
			|||||||
#include "libssh2_config.h"
 | 
					#include "libssh2_config.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#ifdef HAVE_WINDOWS_H
 | 
					#ifdef HAVE_WINDOWS_H
 | 
				
			||||||
 | 
					#ifndef WIN32_LEAN_AND_MEAN
 | 
				
			||||||
 | 
					#define WIN32_LEAN_AND_MEAN
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
#include <windows.h>
 | 
					#include <windows.h>
 | 
				
			||||||
 | 
					#undef WIN32_LEAN_AND_MEAN
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#ifdef HAVE_WS2TCPIP_H
 | 
					#ifdef HAVE_WS2TCPIP_H
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user