THRIFT-1504: Cocoa Generator should use local file imports for base Thrift headers
authorJake Farrell <jfarrell@apache.org>
Fri, 27 Jan 2012 03:06:54 +0000 (03:06 +0000)
committerJake Farrell <jfarrell@apache.org>
Fri, 27 Jan 2012 03:06:54 +0000 (03:06 +0000)
Client: cocoa
Patch: Steve White

Updates thrift headers as global imports instead of local imports

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1236503 13f79535-47bb-0310-9956-ffa450edef68

compiler/cpp/src/generate/t_cocoa_generator.cc

index 14ed478..9db5d27 100644 (file)
@@ -270,11 +270,11 @@ string t_cocoa_generator::cocoa_imports() {
  */
 string t_cocoa_generator::cocoa_thrift_imports() {
   string result = string() +
-    "#import <TProtocol.h>\n" +
-    "#import <TApplicationException.h>\n" +
-    "#import <TProtocolUtil.h>\n" +
-    "#import <TProcessor.h>\n" +
-    "#import <TObjective-C.h>\n" +
+    "#import \"TProtocol.h\"\n" +
+    "#import \"TApplicationException.h\"\n" +
+    "#import \"TProtocolUtil.h\"\n" +
+    "#import \"TProcessor.h\"\n" +
+    "#import \"TObjective-C.h\"\n" +
     "\n";
 
   // Include other Thrift includes