aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManjunath Kudlur <keveman@gmail.com>2015-12-07 14:15:29 -0800
committerManjunath Kudlur <keveman@gmail.com>2015-12-07 14:15:29 -0800
commit3f9b4f2944074b3ccdcdeb3ae508ec170055571e (patch)
tree076f7b88fc82cc25487420c77c2da6deea3663db
parent3ff1dca0bd9c1526cc0377533db89c4a45862253 (diff)
downloadprotobuf-3f9b4f2944074b3ccdcdeb3ae508ec170055571e.tar.gz
protobuf-3f9b4f2944074b3ccdcdeb3ae508ec170055571e.tar.bz2
protobuf-3f9b4f2944074b3ccdcdeb3ae508ec170055571e.zip
Updated for c++98 compatibility
-rw-r--r--python/google/protobuf/pyext/extension_dict.h3
-rw-r--r--python/google/protobuf/pyext/message.h2
-rw-r--r--python/google/protobuf/pyext/message_map_container.h3
-rw-r--r--python/google/protobuf/pyext/repeated_composite_container.h3
-rw-r--r--python/google/protobuf/pyext/repeated_scalar_container.h3
-rw-r--r--python/google/protobuf/pyext/scalar_map_container.h3
6 files changed, 12 insertions, 5 deletions
diff --git a/python/google/protobuf/pyext/extension_dict.h b/python/google/protobuf/pyext/extension_dict.h
index 0cac8ba6..352495b9 100644
--- a/python/google/protobuf/pyext/extension_dict.h
+++ b/python/google/protobuf/pyext/extension_dict.h
@@ -47,8 +47,9 @@ namespace protobuf {
class Message;
class FieldDescriptor;
+#ifdef _SHARED_PTR_H
using std::shared_ptr;
-using std::string;
+#endif
namespace python {
diff --git a/python/google/protobuf/pyext/message.h b/python/google/protobuf/pyext/message.h
index d4b7f4cf..5b495e89 100644
--- a/python/google/protobuf/pyext/message.h
+++ b/python/google/protobuf/pyext/message.h
@@ -52,8 +52,10 @@ class Descriptor;
class DescriptorPool;
class MessageFactory;
+#ifdef _SHARED_PTR_H
using std::shared_ptr;
using std::string;
+#endif
namespace python {
diff --git a/python/google/protobuf/pyext/message_map_container.h b/python/google/protobuf/pyext/message_map_container.h
index 270922d4..d65ac4dd 100644
--- a/python/google/protobuf/pyext/message_map_container.h
+++ b/python/google/protobuf/pyext/message_map_container.h
@@ -45,8 +45,9 @@ namespace protobuf {
class Message;
+#ifdef _SHARED_PTR_H
using std::shared_ptr;
-using std::string;
+#endif
namespace python {
diff --git a/python/google/protobuf/pyext/repeated_composite_container.h b/python/google/protobuf/pyext/repeated_composite_container.h
index 494db0ec..37f7b7e4 100644
--- a/python/google/protobuf/pyext/repeated_composite_container.h
+++ b/python/google/protobuf/pyext/repeated_composite_container.h
@@ -49,8 +49,9 @@ namespace protobuf {
class FieldDescriptor;
class Message;
+#ifdef _SHARED_PTR_H
using std::shared_ptr;
-using std::string;
+#endif
namespace python {
diff --git a/python/google/protobuf/pyext/repeated_scalar_container.h b/python/google/protobuf/pyext/repeated_scalar_container.h
index a13cf9b2..bd73017d 100644
--- a/python/google/protobuf/pyext/repeated_scalar_container.h
+++ b/python/google/protobuf/pyext/repeated_scalar_container.h
@@ -48,8 +48,9 @@ namespace protobuf {
class Message;
+#ifdef _SHARED_PTR_H
using std::shared_ptr;
-using std::string;
+#endif
namespace python {
diff --git a/python/google/protobuf/pyext/scalar_map_container.h b/python/google/protobuf/pyext/scalar_map_container.h
index 8807892d..c055d1b5 100644
--- a/python/google/protobuf/pyext/scalar_map_container.h
+++ b/python/google/protobuf/pyext/scalar_map_container.h
@@ -45,8 +45,9 @@ namespace protobuf {
class Message;
+#ifdef _SHARED_PTR_H
using std::shared_ptr;
-using std::string;
+#endif
namespace python {