THRIFT-343. Import <Foundation/Foundation.h> instead of <Cocoa/Cocoa.h> to support...
authorAndrew McGeachie <geechorama@apache.org>
Tue, 21 Jul 2009 14:45:12 +0000 (14:45 +0000)
committerAndrew McGeachie <geechorama@apache.org>
Tue, 21 Jul 2009 14:45:12 +0000 (14:45 +0000)
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@796327 13f79535-47bb-0310-9956-ffa450edef68

12 files changed:
compiler/cpp/src/generate/t_cocoa_generator.cc
lib/cocoa/src/TException.h
lib/cocoa/src/TProcessor.h
lib/cocoa/src/protocol/TProtocol.h
lib/cocoa/src/protocol/TProtocolFactory.h
lib/cocoa/src/server/TSocketServer.h
lib/cocoa/src/server/TSocketServer.m
lib/cocoa/src/transport/THTTPClient.h
lib/cocoa/src/transport/TNSFileHandleTransport.h
lib/cocoa/src/transport/TNSStreamTransport.h
lib/cocoa/src/transport/TSocketClient.h
lib/cocoa/src/transport/TSocketClient.m

index 762c5b2..2b7551f 100644 (file)
@@ -243,7 +243,7 @@ void t_cocoa_generator::init_generator() {
 string t_cocoa_generator::cocoa_imports() {
   return
     string() +
-    "#import <Cocoa/Cocoa.h>\n" +
+    "#import <Foundation/Foundation.h>\n" +
     "\n";
 }
 
index b069a86..e56f4fa 100644 (file)
@@ -17,7 +17,7 @@
  * under the License.
  */
 
-#import <Cocoa/Cocoa.h>
+#import <Foundation/Foundation.h>
 
 @interface TException : NSException {
 }
index f8df225..e361d96 100644 (file)
@@ -17,7 +17,7 @@
  * under the License.
  */
 
-#import <Cocoa/Cocoa.h>
+#import <Foundation/Foundation.h>
 
 
 @protocol TProcessor <NSObject>
index cc8cdb4..281239d 100644 (file)
@@ -17,7 +17,7 @@
  * under the License.
  */
 
-#import <Cocoa/Cocoa.h>
+#import <Foundation/Foundation.h>
 
 #import "TTransport.h"
 
index 2d125e9..f200a6d 100644 (file)
@@ -17,7 +17,7 @@
  * under the License.
  */
 
-#import <Cocoa/Cocoa.h>
+#import <Foundation/Foundation.h>
 #import "TProtocol.h"
 #import "TTransport.h"
 
index 3d4a9e0..e107aaa 100644 (file)
@@ -17,7 +17,7 @@
  * under the License.
  */
 
-#import <Cocoa/Cocoa.h>
+#import <Foundation/Foundation.h>
 #import "TProtocolFactory.h"
 #import "TProcessor.h"
 
index 97d8bae..5feb9b6 100644 (file)
@@ -17,7 +17,7 @@
  * under the License.
  */
 
-#import <Cocoa/Cocoa.h>
+#import <Foundation/Foundation.h>
 #import "TSocketServer.h"
 #import "TNSFileHandleTransport.h"
 #import "TProtocol.h"
index 86f3f05..4d57840 100644 (file)
@@ -17,7 +17,7 @@
  * under the License.
  */
 
-#import <Cocoa/Cocoa.h>
+#import <Foundation/Foundation.h>
 #import "TTransport.h"
 
 @interface THTTPClient : NSObject <TTransport> {
index 64a6af3..ba2a209 100644 (file)
@@ -18,7 +18,7 @@
  */
 
 
-#import <Cocoa/Cocoa.h>
+#import <Foundation/Foundation.h>
 #import "TTransport.h"
 
 @interface TNSFileHandleTransport : NSObject <TTransport> {
index 295a185..d7be40b 100644 (file)
@@ -17,7 +17,7 @@
  * under the License.
  */
 
-#import <Cocoa/Cocoa.h>
+#import <Foundation/Foundation.h>
 #import "TTransport.h"
 
 @interface TNSStreamTransport : NSObject <TTransport> {
index a883acb..0ea957d 100644 (file)
@@ -17,7 +17,7 @@
  * under the License.
  */
 
-#import <Cocoa/Cocoa.h>
+#import <Foundation/Foundation.h>
 #import "TNSStreamTransport.h"
 
 @interface TSocketClient : TNSStreamTransport {
index 7c07c56..cc50bec 100644 (file)
@@ -17,7 +17,7 @@
  * under the License.
  */
 
-#import <Cocoa/Cocoa.h>
+#import <Foundation/Foundation.h>
 #import "TSocketClient.h"
 
 @implementation TSocketClient