diff options
author | Chris Lattner <sabre@nondot.org> | 2009-02-13 22:43:13 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-02-13 22:43:13 +0000 |
commit | 39bb0182bd64849a52ca14bee58609f814bcd545 (patch) | |
tree | 552a2db64a101fc12c8d478799b15cf2e601dd38 /clang/lib/Headers/stdint.h | |
parent | c2fde917037ddee6c31ece895c1630ab0f451a82 (diff) | |
download | bcm5719-llvm-39bb0182bd64849a52ca14bee58609f814bcd545.tar.gz bcm5719-llvm-39bb0182bd64849a52ca14bee58609f814bcd545.zip |
anders johnson points out that some software depends on the
definition of __intptr_t_defined when stdint.h defines intptr_t.
llvm-svn: 64497
Diffstat (limited to 'clang/lib/Headers/stdint.h')
-rw-r--r-- | clang/lib/Headers/stdint.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/Headers/stdint.h b/clang/lib/Headers/stdint.h index 9e5bfd700f8..d51966713d4 100644 --- a/clang/lib/Headers/stdint.h +++ b/clang/lib/Headers/stdint.h @@ -70,8 +70,11 @@ typedef uint64_t uint_fast64_t; /* C99 7.18.1.4 Integer types capable of holding object pointers. */ +#ifndef __intptr_t_defined typedef __INTPTR_TYPE__ intptr_t; typedef unsigned __INTPTR_TYPE__ uintptr_t; +#define __intptr_t_defined +#endif /* C99 7.18.1.5 Greatest-width integer types. */ |