aboutsummaryrefslogtreecommitdiff
path: root/src/google/protobuf/service.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/google/protobuf/service.h')
-rw-r--r--src/google/protobuf/service.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/google/protobuf/service.h b/src/google/protobuf/service.h
index ad6f9685..3818f721 100644
--- a/src/google/protobuf/service.h
+++ b/src/google/protobuf/service.h
@@ -61,7 +61,7 @@
//
// // implements MyService ---------------------------------------
//
-// void Foo(google::protobuf::RpcController* controller,
+// void Foo(proto2::RpcController* controller,
// const MyRequest* request,
// MyResponse* response,
// Closure* done) {
@@ -104,6 +104,10 @@
#include <google/protobuf/stubs/common.h>
#include <google/protobuf/stubs/callback.h>
+#ifdef SWIG
+#error "You cannot SWIG proto headers"
+#endif
+
namespace google {
namespace protobuf {
@@ -287,6 +291,6 @@ class LIBPROTOBUF_EXPORT RpcChannel {
};
} // namespace protobuf
-
} // namespace google
+
#endif // GOOGLE_PROTOBUF_SERVICE_H__