summaryrefslogtreecommitdiffstats
path: root/clang/lib/Headers/stdint.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-02-13 22:43:13 +0000
committerChris Lattner <sabre@nondot.org>2009-02-13 22:43:13 +0000
commit39bb0182bd64849a52ca14bee58609f814bcd545 (patch)
tree552a2db64a101fc12c8d478799b15cf2e601dd38 /clang/lib/Headers/stdint.h
parentc2fde917037ddee6c31ece895c1630ab0f451a82 (diff)
downloadbcm5719-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.h3
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.
*/
OpenPOWER on IntegriCloud