Subject: INVALID_SOCKET symbol conflict

INVALID_SOCKET symbol conflict

From: Lawson <lawson08_at_yahoo.com>
Date: Fri, 2 Mar 2012 07:13:40 -0800 (PST)

Hi,

I notice that nearly all the defines in libssh2.h use the LIBSSH2_ prefix, except for INVALID_SOCKET. It seems to be on purpose but I don't understand why. Is it a Windows thing?

My issue is that I'm writing an application (on Linux) which includes headers from multiple libraries, and some of them also set this symbol to a conflicting value.

Any enlightenment is appreciated, TIA.

_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2012-03-02