Skip to content
This repository has been archived by the owner on Sep 26, 2020. It is now read-only.

Commit

Permalink
define CURL_SIZEOF_LONG in curlbuild.h
Browse files Browse the repository at this point in the history
  • Loading branch information
ruslo committed Aug 16, 2017
1 parent 0871f10 commit 732cc04
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 4 additions & 2 deletions include/curl/curlbuild.h.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,9 @@
# include <sys/poll.h>
#endif

#include <intsizeof.h> // INSIZEOF_LONG
#include <intsizeof.h> // 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}
Expand All @@ -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"
Expand Down
3 changes: 0 additions & 3 deletions lib/curl_config.h.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 732cc04

Please sign in to comment.