THRIFT-343. Import <Foundation/Foundation.h> instead of <Cocoa/Cocoa.h> to support iPhone
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@796327 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/cocoa/src/TException.h b/lib/cocoa/src/TException.h
index b069a86..e56f4fa 100644
--- a/lib/cocoa/src/TException.h
+++ b/lib/cocoa/src/TException.h
@@ -17,7 +17,7 @@
* under the License.
*/
-#import <Cocoa/Cocoa.h>
+#import <Foundation/Foundation.h>
@interface TException : NSException {
}
diff --git a/lib/cocoa/src/TProcessor.h b/lib/cocoa/src/TProcessor.h
index f8df225..e361d96 100644
--- a/lib/cocoa/src/TProcessor.h
+++ b/lib/cocoa/src/TProcessor.h
@@ -17,7 +17,7 @@
* under the License.
*/
-#import <Cocoa/Cocoa.h>
+#import <Foundation/Foundation.h>
@protocol TProcessor <NSObject>
diff --git a/lib/cocoa/src/protocol/TProtocol.h b/lib/cocoa/src/protocol/TProtocol.h
index cc8cdb4..281239d 100644
--- a/lib/cocoa/src/protocol/TProtocol.h
+++ b/lib/cocoa/src/protocol/TProtocol.h
@@ -17,7 +17,7 @@
* under the License.
*/
-#import <Cocoa/Cocoa.h>
+#import <Foundation/Foundation.h>
#import "TTransport.h"
diff --git a/lib/cocoa/src/protocol/TProtocolFactory.h b/lib/cocoa/src/protocol/TProtocolFactory.h
index 2d125e9..f200a6d 100644
--- a/lib/cocoa/src/protocol/TProtocolFactory.h
+++ b/lib/cocoa/src/protocol/TProtocolFactory.h
@@ -17,7 +17,7 @@
* under the License.
*/
-#import <Cocoa/Cocoa.h>
+#import <Foundation/Foundation.h>
#import "TProtocol.h"
#import "TTransport.h"
diff --git a/lib/cocoa/src/server/TSocketServer.h b/lib/cocoa/src/server/TSocketServer.h
index 3d4a9e0..e107aaa 100644
--- a/lib/cocoa/src/server/TSocketServer.h
+++ b/lib/cocoa/src/server/TSocketServer.h
@@ -17,7 +17,7 @@
* under the License.
*/
-#import <Cocoa/Cocoa.h>
+#import <Foundation/Foundation.h>
#import "TProtocolFactory.h"
#import "TProcessor.h"
diff --git a/lib/cocoa/src/server/TSocketServer.m b/lib/cocoa/src/server/TSocketServer.m
index 97d8bae..5feb9b6 100644
--- a/lib/cocoa/src/server/TSocketServer.m
+++ b/lib/cocoa/src/server/TSocketServer.m
@@ -17,7 +17,7 @@
* under the License.
*/
-#import <Cocoa/Cocoa.h>
+#import <Foundation/Foundation.h>
#import "TSocketServer.h"
#import "TNSFileHandleTransport.h"
#import "TProtocol.h"
diff --git a/lib/cocoa/src/transport/THTTPClient.h b/lib/cocoa/src/transport/THTTPClient.h
index 86f3f05..4d57840 100644
--- a/lib/cocoa/src/transport/THTTPClient.h
+++ b/lib/cocoa/src/transport/THTTPClient.h
@@ -17,7 +17,7 @@
* under the License.
*/
-#import <Cocoa/Cocoa.h>
+#import <Foundation/Foundation.h>
#import "TTransport.h"
@interface THTTPClient : NSObject <TTransport> {
diff --git a/lib/cocoa/src/transport/TNSFileHandleTransport.h b/lib/cocoa/src/transport/TNSFileHandleTransport.h
index 64a6af3..ba2a209 100644
--- a/lib/cocoa/src/transport/TNSFileHandleTransport.h
+++ b/lib/cocoa/src/transport/TNSFileHandleTransport.h
@@ -18,7 +18,7 @@
*/
-#import <Cocoa/Cocoa.h>
+#import <Foundation/Foundation.h>
#import "TTransport.h"
@interface TNSFileHandleTransport : NSObject <TTransport> {
diff --git a/lib/cocoa/src/transport/TNSStreamTransport.h b/lib/cocoa/src/transport/TNSStreamTransport.h
index 295a185..d7be40b 100644
--- a/lib/cocoa/src/transport/TNSStreamTransport.h
+++ b/lib/cocoa/src/transport/TNSStreamTransport.h
@@ -17,7 +17,7 @@
* under the License.
*/
-#import <Cocoa/Cocoa.h>
+#import <Foundation/Foundation.h>
#import "TTransport.h"
@interface TNSStreamTransport : NSObject <TTransport> {
diff --git a/lib/cocoa/src/transport/TSocketClient.h b/lib/cocoa/src/transport/TSocketClient.h
index a883acb..0ea957d 100644
--- a/lib/cocoa/src/transport/TSocketClient.h
+++ b/lib/cocoa/src/transport/TSocketClient.h
@@ -17,7 +17,7 @@
* under the License.
*/
-#import <Cocoa/Cocoa.h>
+#import <Foundation/Foundation.h>
#import "TNSStreamTransport.h"
@interface TSocketClient : TNSStreamTransport {
diff --git a/lib/cocoa/src/transport/TSocketClient.m b/lib/cocoa/src/transport/TSocketClient.m
index 7c07c56..cc50bec 100644
--- a/lib/cocoa/src/transport/TSocketClient.m
+++ b/lib/cocoa/src/transport/TSocketClient.m
@@ -17,7 +17,7 @@
* under the License.
*/
-#import <Cocoa/Cocoa.h>
+#import <Foundation/Foundation.h>
#import "TSocketClient.h"
@implementation TSocketClient