cURL / Mailing Lists / curl-users / Single Mail

curl-users

(no subject)

From: Juan Isoza <jisoza_at_gmail.com>
Date: Wed, 2 Dec 2015 19:21:31 +0100

curl 7.46 has problem compiling as jni using android ndk and mips 64 target
(all other target are fine)

when curlbuild.h see __mips__ macro, it beilieve this is 32 bits

But symbol __mips__ is defined for both mips 32 and 64 bits

For mips 64 bits, It defined also

__LP64__ , __mips64 , _LP64

the solution is swap order and first test

defined(__LP64__) || \

        defined(__x86_64__) || defined(__ppc64__) || defined(__sparc64__)

and then

# if defined(__ILP32__) || \

      defined(__i386__) || defined(__ppc__) || defined(__arm__) || \

      defined(__sparc__) || defined(__mips__) || defined(__sh__)

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2015-12-02