From: Jake Farrell Date: Fri, 27 Jan 2012 03:06:54 +0000 (+0000) Subject: THRIFT-1504: Cocoa Generator should use local file imports for base Thrift headers X-Git-Tag: 0.9.1~457 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=ba021466824299c6122e26b8850759f0a17314c0;p=common%2Fthrift.git THRIFT-1504: Cocoa Generator should use local file imports for base Thrift headers 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 --- diff --git a/compiler/cpp/src/generate/t_cocoa_generator.cc b/compiler/cpp/src/generate/t_cocoa_generator.cc index 14ed478e..9db5d272 100644 --- a/compiler/cpp/src/generate/t_cocoa_generator.cc +++ b/compiler/cpp/src/generate/t_cocoa_generator.cc @@ -270,11 +270,11 @@ string t_cocoa_generator::cocoa_imports() { */ string t_cocoa_generator::cocoa_thrift_imports() { string result = string() + - "#import \n" + - "#import \n" + - "#import \n" + - "#import \n" + - "#import \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