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.h16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/google/protobuf/reflection_ops.h b/src/google/protobuf/reflection_ops.h
index 45d8c650..b30c050a 100644
--- a/src/google/protobuf/reflection_ops.h
+++ b/src/google/protobuf/reflection_ops.h
@@ -41,6 +41,12 @@
#include <google/protobuf/stubs/common.h>
#include <google/protobuf/message.h>
+#ifdef SWIG
+#error "You cannot SWIG proto headers"
+#endif
+
+#include <google/protobuf/port_def.inc>
+
namespace google {
namespace protobuf {
namespace internal {
@@ -54,7 +60,7 @@ namespace internal {
// the Message interface.
//
// This class is really a namespace that contains only static methods.
-class LIBPROTOBUF_EXPORT ReflectionOps {
+class PROTOBUF_EXPORT ReflectionOps {
public:
static void Copy(const Message& from, Message* to);
static void Merge(const Message& from, Message* to);
@@ -66,8 +72,8 @@ class LIBPROTOBUF_EXPORT ReflectionOps {
// paths (e.g. "foo.bar[5].baz") to *names. "prefix" will be attached to
// the front of each name.
static void FindInitializationErrors(const Message& message,
- const string& prefix,
- std::vector<string>* errors);
+ const std::string& prefix,
+ std::vector<std::string>* errors);
private:
// All methods are static. No need to construct.
@@ -76,6 +82,8 @@ class LIBPROTOBUF_EXPORT ReflectionOps {
} // namespace internal
} // namespace protobuf
-
} // namespace google
+
+#include <google/protobuf/port_undef.inc>
+
#endif // GOOGLE_PROTOBUF_REFLECTION_OPS_H__