I have a problem with header file included in my project under windows.
As you know, in ws2tcpip.h, IP_ADD_MEMBERSHIP is defined as 12, however,
in winsock.h (which is included in windows.h) this value is 5. So when I
ws2tcpip.h and windows.h in my project, why isn't there any warning for
Here is the code:
int add_member = IP_ADD_MEMBERSHIP;
there is no warning during compiling. and the value add_member is 12;
however, if I didn't include <ws2tcpip.h> and there is no problem
of compilation, and the value of add_member is 5;
Can anybody help me how to understand that? Maybe it is a stupid question
for you, but I am bit of lost. Thanks for your reply.