commit | 0a9c615a899daa37b671711acc2c9be0a245919f | [log] [tgz] |
---|---|---|
author | Pavel Chupin <[email protected]> | Tue Dec 18 17:25:01 2012 +0400 |
committer | Pavel Chupin <[email protected]> | Fri Aug 02 19:23:37 2013 +0400 |
tree | d1f813d21cfcf1109d87e2e763d654184420f682 | |
parent | 101b5e1f6cc4e24635760928b3d2c1e51c1e5774 [diff] [blame] |
Fix stdint.h intptr_t/uintptr_t for x86_64/x32 Patch is required in NDK headers as well to be able to build multilib GCC with libgomp support. It's here: https://android-review.googlesource.com/#/c/62982 Change-Id: I2bec25d8cbca0e5ef1a0857008ececd92f4911be Signed-off-by: Pavel Chupin <[email protected]>
diff --git a/libc/include/stdint.h b/libc/include/stdint.h index 8e2f99e..b6b6444 100644 --- a/libc/include/stdint.h +++ b/libc/include/stdint.h
@@ -191,8 +191,13 @@ * intptr_t & uintptr_t */ +#ifdef __LP64__ +typedef long intptr_t; +typedef unsigned long uintptr_t; +#else typedef int intptr_t; typedef unsigned int uintptr_t; +#endif #ifdef __STDINT_LIMITS # define INTPTR_MIN INT32_MIN