WIN32 is defined when using VisualGDB

Sysprogs forums Forums VisualGDB WIN32 is defined when using VisualGDB

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #12915
    illera88
    Participant

    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?

    #12916
    illera88
    Participant

    Never mind. It was some stupid thing I added in the configuration.

    Cheers

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.