[cfe-commits] r64497 - /cfe/trunk/lib/Headers/stdint.h

Chris Lattner sabre at nondot.org
Fri Feb 13 14:43:14 PST 2009


Author: lattner
Date: Fri Feb 13 16:43:13 2009
New Revision: 64497

URL: http://llvm.org/viewvc/llvm-project?rev=64497&view=rev
Log:
anders johnson points out that some software depends on the
definition of __intptr_t_defined when stdint.h defines intptr_t.

Modified:
    cfe/trunk/lib/Headers/stdint.h

Modified: cfe/trunk/lib/Headers/stdint.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Headers/stdint.h?rev=64497&r1=64496&r2=64497&view=diff

==============================================================================
--- cfe/trunk/lib/Headers/stdint.h (original)
+++ cfe/trunk/lib/Headers/stdint.h Fri Feb 13 16:43:13 2009
@@ -70,8 +70,11 @@
 
 /* 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.
  */





More information about the cfe-commits mailing list