diff --git a/include/curl/curlbuild.h.cmake b/include/curl/curlbuild.h.cmake index 0de6040c0aec9a..41cb834e8e3182 100644 --- a/include/curl/curlbuild.h.cmake +++ b/include/curl/curlbuild.h.cmake @@ -148,7 +148,9 @@ # include #endif -#include // INSIZEOF_LONG +#include // INTSIZEOF_LONG + +#define CURL_SIZEOF_LONG INTSIZEOF_LONG /* Integral data type used for curl_socklen_t. */ #define CURL_TYPEOF_CURL_SOCKLEN_T ${CURL_TYPEOF_CURL_SOCKLEN_T} @@ -159,7 +161,7 @@ typedef CURL_TYPEOF_CURL_SOCKLEN_T curl_socklen_t; #define HAVE_SIZEOF_SSIZE_T ${HAVE_SIZEOF_SSIZE_T} /* unsigned curl_off_t constant suffix. */ -#if INSIZEOF_LONG == 8 +#if INTSIZEOF_LONG == 8 # define CURL_SIZEOF_CURL_OFF_T 8 # define CURL_TYPEOF_CURL_OFF_T long # define CURL_FORMAT_CURL_OFF_T "ld" diff --git a/lib/curl_config.h.cmake b/lib/curl_config.h.cmake index 051ed3eaaf167a..79d3721c6da232 100644 --- a/lib/curl_config.h.cmake +++ b/lib/curl_config.h.cmake @@ -878,9 +878,6 @@ /* The size of `short', as computed by sizeof. */ #define SIZEOF_SHORT INTSIZEOF_SHRT -/* The size of `long', as computed by sizeof. */ -#define CURL_SIZEOF_LONG INTSIZEOF_LONG - /* The size of `size_t', as computed by sizeof. */ #define SIZEOF_SIZE_T INTSIZEOF_SIZE