[cfe-commits] r128578 - /cfe/trunk/lib/Headers/stddef.h

Ted Kremenek kremenek at apple.com
Wed Mar 30 14:43:52 PDT 2011


Author: kremenek
Date: Wed Mar 30 16:43:52 2011
New Revision: 128578

URL: http://llvm.org/viewvc/llvm-project?rev=128578&view=rev
Log:
Add '#ifndef _PTRDIFF_T' guard around definition of ptrdiff_t.  Fixes <rdar://problem/9210154>.

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

Modified: cfe/trunk/lib/Headers/stddef.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Headers/stddef.h?rev=128578&r1=128577&r2=128578&view=diff
==============================================================================
--- cfe/trunk/lib/Headers/stddef.h (original)
+++ cfe/trunk/lib/Headers/stddef.h Wed Mar 30 16:43:52 2011
@@ -26,7 +26,10 @@
 #ifndef __STDDEF_H
 #define __STDDEF_H
 
+#ifndef _PTRDIFF_T
+#define _PTRDIFF_T
 typedef __typeof__(((int*)0)-((int*)0)) ptrdiff_t;
+#endif
 #ifndef _SIZE_T
 #define _SIZE_T
 typedef __typeof__(sizeof(int)) size_t;





More information about the cfe-commits mailing list