cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Problem with 64 vs 32 bit header files for iOS build

From: CÚdric Deltheil <cedric_at_moodstocks.com>
Date: Wed, 10 Feb 2016 20:14:13 +0100

On Wed, Feb 10, 2016, at 03:38 PM, JOHAN LANTZ wrote:
> I just moved my Win32 curl code to xCode and I am having an issue some
> of the checks in the curl headers.
>
> I have usedáhttps://github.com/biasedbit/curl-ios-build-scripts%a0for
> building curl and it does produce two sets of header files, one for 64
> bit and one for 32 bit. If I choose the 64 bit headers
 it works fine on the new iPhones but not on the 4s and the other
 way around.
>

> All suggestions appreciated

You should be able to craft a versatile header for both 32-bit and 64-
bit versions thanks to `#ifdef __LP64__ /* ... */ #else /* ... */
#endif` macros. Some hints here:

http://stackoverflow.com/a/21699311/1688185

-------------------------------------------------------------------
List admin: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2016-02-10