Hi,
I’m trying to compile a program that uses curl library. The problem is that at compilation time it complains because:
#if defined(WIN32) && !defined(_WIN32_WCE) && !defined(__CYGWIN__)
#if !(defined(_WINSOCKAPI_) || defined(_WINSOCK_H) || defined(__LWIP_OPT_H__))
/* The check above prevents the winsock2 inclusion if winsock.h already was
included, since they can’t co-exist without problems */
#include <winsock2.h>
#include <ws2tcpip.h>
#endif
#endif
It seems that WIN32 is defined so it tries to include winsock2.h and fails since that’s a windows header only.
What can i do?