aboutsummaryrefslogtreecommitdiff
path: root/src/google/protobuf/reflection_ops.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/google/protobuf/reflection_ops.h')
-rw-r--r--src/google/protobuf/reflection_ops.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/google/protobuf/reflection_ops.h b/src/google/protobuf/reflection_ops.h
index 45d8c650..78666f30 100644
--- a/src/google/protobuf/reflection_ops.h
+++ b/src/google/protobuf/reflection_ops.h
@@ -41,6 +41,10 @@
#include <google/protobuf/stubs/common.h>
#include <google/protobuf/message.h>
+#ifdef SWIG
+#error "You cannot SWIG proto headers"
+#endif
+
namespace google {
namespace protobuf {
namespace internal {
@@ -76,6 +80,6 @@ class LIBPROTOBUF_EXPORT ReflectionOps {
} // namespace internal
} // namespace protobuf
-
} // namespace google
+
#endif // GOOGLE_PROTOBUF_REFLECTION_OPS_H__