aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Nate Kibler <nkibler@google.com>2015-09-23 14:10:42 -0700
committerGravatar Nate Kibler <nkibler@google.com>2015-09-23 14:10:42 -0700
commiteff9256b39f3e3c4e86cd7eb1797abd55203f2a1 (patch)
treee1ef50715006ba6b03810f81e0729b31103d527c
parent5f859ee00c07ee14618c03b5ac5f69fc96649f18 (diff)
Fixes broken build due to misplaced import
The GRPCCall import must be in the header because it defines a protocol that GRPCRequestHeaders uses.
-rw-r--r--src/objective-c/GRPCClient/private/GRPCRequestHeaders.h2
-rw-r--r--src/objective-c/GRPCClient/private/GRPCRequestHeaders.m1
2 files changed, 1 insertions, 2 deletions
diff --git a/src/objective-c/GRPCClient/private/GRPCRequestHeaders.h b/src/objective-c/GRPCClient/private/GRPCRequestHeaders.h
index ed08ae5f3c..cf5a1be9d6 100644
--- a/src/objective-c/GRPCClient/private/GRPCRequestHeaders.h
+++ b/src/objective-c/GRPCClient/private/GRPCRequestHeaders.h
@@ -34,7 +34,7 @@
#import <Foundation/Foundation.h>
#include <grpc/grpc.h>
-@class GRPCCall.h;
+#import "../GRPCCall.h"
@interface GRPCRequestHeaders : NSObject<GRPCRequestHeaders>
diff --git a/src/objective-c/GRPCClient/private/GRPCRequestHeaders.m b/src/objective-c/GRPCClient/private/GRPCRequestHeaders.m
index 761677ce50..d23f21c0f9 100644
--- a/src/objective-c/GRPCClient/private/GRPCRequestHeaders.m
+++ b/src/objective-c/GRPCClient/private/GRPCRequestHeaders.m
@@ -35,7 +35,6 @@
#import <Foundation/Foundation.h>
-#import "../GRPCCall.h"
#import "NSDictionary+GRPC.h"
// Used by the setter.