aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/google/protobuf/api.pb.h
diff options
context:
space:
mode:
authorGravatar Feng Xiao <xfxyjwf@gmail.com>2016-09-22 17:46:22 -0700
committerGravatar Bo Yang <teboring@google.com>2016-10-10 11:44:21 -0700
commit460e7dd7c47b5a3fc290008317c044fac741916a (patch)
tree07ba6084281627598eff9afeeafe4a381bd90569 /src/google/protobuf/api.pb.h
parent4cf072248fc39d1c63dcb1600ff9e73df8757779 (diff)
Fix Visual Studio compile issues.
Change-Id: I6a5078b6bcdf4637e11c1cb9da1f74298e6fc26e
Diffstat (limited to 'src/google/protobuf/api.pb.h')
-rw-r--r--src/google/protobuf/api.pb.h30
1 files changed, 18 insertions, 12 deletions
diff --git a/src/google/protobuf/api.pb.h b/src/google/protobuf/api.pb.h
index dc0b2621..94102863 100644
--- a/src/google/protobuf/api.pb.h
+++ b/src/google/protobuf/api.pb.h
@@ -61,9 +61,7 @@ class LIBPROTOBUF_EXPORT Api : public ::google::protobuf::Message /* @@protoc_in
static const ::google::protobuf::Descriptor* descriptor();
static const Api& default_instance();
- static inline const Api* internal_default_instance() {
- return &default_instance_.get();
- }
+ static const Api* internal_default_instance();
void Swap(Api* other);
@@ -202,8 +200,9 @@ class LIBPROTOBUF_EXPORT Api : public ::google::protobuf::Message /* @@protoc_in
friend void protobuf_ShutdownFile_google_2fprotobuf_2fapi_2eproto();
void InitAsDefaultInstance();
- static ::google::protobuf::internal::ExplicitlyConstructed<Api> default_instance_;
};
+extern ::google::protobuf::internal::ExplicitlyConstructed<Api> Api_default_instance_;
+
// -------------------------------------------------------------------
class LIBPROTOBUF_EXPORT Method : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.Method) */ {
@@ -221,9 +220,7 @@ class LIBPROTOBUF_EXPORT Method : public ::google::protobuf::Message /* @@protoc
static const ::google::protobuf::Descriptor* descriptor();
static const Method& default_instance();
- static inline const Method* internal_default_instance() {
- return &default_instance_.get();
- }
+ static const Method* internal_default_instance();
void Swap(Method* other);
@@ -352,8 +349,9 @@ class LIBPROTOBUF_EXPORT Method : public ::google::protobuf::Message /* @@protoc
friend void protobuf_ShutdownFile_google_2fprotobuf_2fapi_2eproto();
void InitAsDefaultInstance();
- static ::google::protobuf::internal::ExplicitlyConstructed<Method> default_instance_;
};
+extern ::google::protobuf::internal::ExplicitlyConstructed<Method> Method_default_instance_;
+
// -------------------------------------------------------------------
class LIBPROTOBUF_EXPORT Mixin : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.Mixin) */ {
@@ -371,9 +369,7 @@ class LIBPROTOBUF_EXPORT Mixin : public ::google::protobuf::Message /* @@protoc_
static const ::google::protobuf::Descriptor* descriptor();
static const Mixin& default_instance();
- static inline const Mixin* internal_default_instance() {
- return &default_instance_.get();
- }
+ static const Mixin* internal_default_instance();
void Swap(Mixin* other);
@@ -456,8 +452,9 @@ class LIBPROTOBUF_EXPORT Mixin : public ::google::protobuf::Message /* @@protoc_
friend void protobuf_ShutdownFile_google_2fprotobuf_2fapi_2eproto();
void InitAsDefaultInstance();
- static ::google::protobuf::internal::ExplicitlyConstructed<Mixin> default_instance_;
};
+extern ::google::protobuf::internal::ExplicitlyConstructed<Mixin> Mixin_default_instance_;
+
// ===================================================================
@@ -697,6 +694,9 @@ inline void Api::set_syntax(::google::protobuf::Syntax value) {
// @@protoc_insertion_point(field_set:google.protobuf.Api.syntax)
}
+inline const Api* Api::internal_default_instance() {
+ return &Api_default_instance_.get();
+}
// -------------------------------------------------------------------
// Method
@@ -905,6 +905,9 @@ inline void Method::set_syntax(::google::protobuf::Syntax value) {
// @@protoc_insertion_point(field_set:google.protobuf.Method.syntax)
}
+inline const Method* Method::internal_default_instance() {
+ return &Method_default_instance_.get();
+}
// -------------------------------------------------------------------
// Mixin
@@ -997,6 +1000,9 @@ inline void Mixin::set_allocated_root(::std::string* root) {
// @@protoc_insertion_point(field_set_allocated:google.protobuf.Mixin.root)
}
+inline const Mixin* Mixin::internal_default_instance() {
+ return &Mixin_default_instance_.get();
+}
#endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
// -------------------------------------------------------------------