From 40e60c27d09d0561cd3ab41c332e3b0838e899dd Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 13 Feb 2009 22:43:13 +0000 Subject: [PATCH] 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 --- lib/Headers/stdint.h | 3 +++ 1 file changed, 3 insertions(+) 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. */ -- 2.40.0