aboutsummaryrefslogtreecommitdiff
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
commit40e60c27d09d0561cd3ab41c332e3b0838e899dd (patch)
tree78c181ab8b0c746808f0176b001960544cb47f94
parent6ad474f82f0cf32e13128d89fa5ad3a37ae73530 (diff)
anders johnson points out that some software depends on the
definition of __intptr_t_defined when stdint.h defines intptr_t. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64497 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Headers/stdint.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Headers/stdint.h b/lib/Headers/stdint.h
index 9e5bfd700f..d51966713d 100644
--- a/lib/Headers/stdint.h
+++ b/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.
*/