This line
#ifdef HAVE_WINSOCK2_H
#define _WINSOCKAPI_
#endif
Has a side-effect on curl. It disables the include of winsock2.h and causes a lot of errors like
include\curl/curl.h(141,16): error C2061: syntax error: identifier 'curl_socket_t'
Curls checks:
#if defined(_WIN32) && !defined(_WIN32_WCE) && !defined(__CYGWIN__)
#if !(defined(_WINSOCKAPI_) || defined(_WINSOCK_H) || \
defined(__LWIP_OPT_H__) || defined(LWIP_HDR_OPT_H))
/* The check above prevents the winsock2.h inclusion if winsock.h already was
included, since they cannot co-exist without problems */
#include <winsock2.h>
Please re-consider setting _WINSOCKAPI_
This line
netcdf-c/config.h.cmake.in
Line 30 in cb433b4
Has a side-effect on curl. It disables the include of winsock2.h and causes a lot of errors like
include\curl/curl.h(141,16): error C2061: syntax error: identifier 'curl_socket_t'Curls checks:
Please re-consider setting
_WINSOCKAPI_