Merge "Fix stdint.h intptr_t/uintptr_t for x86_64/x32"

This commit is contained in:
Elliott Hughes 2013-08-05 20:55:24 +00:00 committed by Gerrit Code Review
commit cd927519a9

View File

@ -191,8 +191,13 @@ typedef uint64_t uint_fast64_t;
* 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