Ticket #69 (closed defect)
|Reported by:||carlo_bramini||Owned by:||bagder|
I fixed the compilation of libssh2 under MSYS+MINGW, now it works without problems.
The compilation under MSVC works too.
List of changes:
detect mingw32 (or mingw64) compiler, add some CFLAGS and detect the presence of W32API.
select() was not found at configure time because it is declared with PASCAL calling convention, so its name is decorated with "@". Normally such conditions must be fixed by declaring correct prototype, or including good include file (i.e. winsock2.h).
fixed nonblocking examples for Win32/Win64.
Declare some useful stuff, mainly moved from libssh2_config.h under /win32 directory
Removed some stuff for fixing compilation under MSVC