aboutsummaryrefslogtreecommitdiffstats
path: root/src/google/protobuf/generated_message_util.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/google/protobuf/generated_message_util.cc')
-rw-r--r--src/google/protobuf/generated_message_util.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/google/protobuf/generated_message_util.cc b/src/google/protobuf/generated_message_util.cc
index 9470bb0..7ac015d 100644
--- a/src/google/protobuf/generated_message_util.cc
+++ b/src/google/protobuf/generated_message_util.cc
@@ -34,10 +34,19 @@
#include <google/protobuf/generated_message_util.h>
+#include <limits>
+
namespace google {
namespace protobuf {
namespace internal {
+double Infinity() {
+ return std::numeric_limits<double>::infinity();
+}
+double NaN() {
+ return std::numeric_limits<double>::quiet_NaN();
+}
+
} // namespace internal
} // namespace protobuf