commit | cd927519a94939f2ebc307544f827baade529bc9 | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Mon Aug 05 20:55:24 2013 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Mon Aug 05 20:55:24 2013 +0000 |
tree | 022e75cb0f579eee1de36da9d9044967a617242c | |
parent | a0473d77b2d3a6f26e29cc8c2fdaeb2a4b3ab8f8 [diff] | |
parent | 0a9c615a899daa37b671711acc2c9be0a245919f [diff] |
Merge "Fix stdint.h intptr_t/uintptr_t for x86_64/x32"
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