jasonacox/Build-OpenSSL-cURL

error

pjbruce opened this issue · 2 comments

curlrules.h:143:6: 'curl_rule_01' declared as an array with a negative size

Thanks pjbruce - If you get this error, edit the curlbuild.h header file:

/* The size of `long', as computed by sizeof. */
// ADD Condition for 64 Bit
#ifdef __LP64__
#define CURL_SIZEOF_LONG 8
#else
#define CURL_SIZEOF_LONG 4
#endif

I also found that I needed to treat this section:

/* Signed integral data type used for curl_off_t. */
//#define CURL_TYPEOF_CURL_OFF_T long
//ADD Condition for 64 Bit
#define CURL_TYPEOF_CURL_OFF_T int64_t

I'll add notes to the README.