You can actually #include <stddef.h> for this -- it's specifically allowed as it ships as part of Clang.<div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Jun 29, 2012 at 4:48 PM, Fariborz Jahanian <span dir="ltr"><<a href="mailto:fjahanian@apple.com" target="_blank">fjahanian@apple.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Author: fjahanian<br>
Date: Fri Jun 29 18:48:43 2012<br>
New Revision: 159475<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=159475&view=rev" target="_blank">http://llvm.org/viewvc/llvm-project?rev=159475&view=rev</a><br>
Log:<br>
Remove dependency on string.h<br>
<br>
<br>
Modified:<br>
cfe/trunk/test/Rewriter/<a href="http://objc-modern-container-subscript.mm" target="_blank">objc-modern-container-subscript.mm</a><br>
<br>
Modified: cfe/trunk/test/Rewriter/<a href="http://objc-modern-container-subscript.mm" target="_blank">objc-modern-container-subscript.mm</a><br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Rewriter/objc-modern-container-subscript.mm?rev=159475&r1=159474&r2=159475&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Rewriter/objc-modern-container-subscript.mm?rev=159475&r1=159474&r2=159475&view=diff</a><br>
==============================================================================<br>
--- cfe/trunk/test/Rewriter/<a href="http://objc-modern-container-subscript.mm" target="_blank">objc-modern-container-subscript.mm</a> (original)<br>
+++ cfe/trunk/test/Rewriter/<a href="http://objc-modern-container-subscript.mm" target="_blank">objc-modern-container-subscript.mm</a> Fri Jun 29 18:48:43 2012<br>
@@ -2,7 +2,7 @@<br>
// RUN: %clang_cc1 -fsyntax-only -fblocks -Wno-address-of-temporary -D"Class=void*" -D"id=void*" -D"SEL=void*" -D"__declspec(X)=" %t-rw.cpp<br>
// rdar://11203853<br>
<br>
-#include <string.h><br>
+typedef unsigned long size_t;<br>
<br>
void *sel_registerName(const char *);<br>
<br>
<br>
<br>
_______________________________________________<br>
cfe-commits mailing list<br>
<a href="mailto:cfe-commits@cs.uiuc.edu">cfe-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits</a><br>
</blockquote></div><br></div>