diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2008-01-10 23:04:06 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2008-01-10 23:04:06 +0000 |
commit | 88007423f326cfb1c1ebf84461a849c409dbc7e1 (patch) | |
tree | 7f3c23de4786844b2a310722d1efe15b2af435dd /Driver/RewriteTest.cpp | |
parent | d0091aa3850a8c8be94c68710ed4ef1317729ba0 (diff) |
Avoid redefinition of __objcFastEnumerationState
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45842 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Driver/RewriteTest.cpp')
-rw-r--r-- | Driver/RewriteTest.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Driver/RewriteTest.cpp b/Driver/RewriteTest.cpp index 529f524d59..6f6bfc2354 100644 --- a/Driver/RewriteTest.cpp +++ b/Driver/RewriteTest.cpp @@ -122,11 +122,14 @@ namespace { "(struct objc_class *, struct objc_object *, ...);\n" "extern Protocol *objc_getProtocol(const char *);\n" "#include <objc/objc.h>\n" + "#ifndef __FASTENUMERATIONSTATE\n" "struct __objcFastEnumerationState {\n\t" "unsigned long state;\n\t" "id *itemsPtr;\n\t" "unsigned long *mutationsPtr;\n\t" - "unsigned long extra[5];\n};\n"; + "unsigned long extra[5];\n};\n" + "#define __FASTENUMERATIONSTATE\n" + "#endif\n"; Rewrite.InsertText(SourceLocation::getFileLoc(MainFileID, 0), s, strlen(s)); |