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.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/google/protobuf/service.h b/src/google/protobuf/service.h
index ad6f9685..5c6d068f 100644
--- a/src/google/protobuf/service.h
+++ b/src/google/protobuf/service.h
@@ -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__