]> granicus.if.org Git - clang/commitdiff
anders johnson points out that some software depends on the
authorChris Lattner <sabre@nondot.org>
Fri, 13 Feb 2009 22:43:13 +0000 (22:43 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 13 Feb 2009 22:43:13 +0000 (22:43 +0000)
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

lib/Headers/stdint.h

index 9e5bfd700f83fe6098205e4c25942af6744df85a..d51966713d411afe58503355826462ca179c440d 100644 (file)
@@ -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.
  */