aboutsummaryrefslogtreecommitdiff
path: root/src/google/protobuf/stubs/strutil.cc
diff options
context:
space:
mode:
authorkenton@google.com <kenton@google.com@630680e5-0e50-0410-840e-4b1c322b438d>2009-08-17 20:34:29 +0000
committerkenton@google.com <kenton@google.com@630680e5-0e50-0410-840e-4b1c322b438d>2009-08-17 20:34:29 +0000
commit3aa7a0dafe24faba4af8f70a257f74f07162e277 (patch)
tree282b3ee1e5c9ba4e5dfee215b708fda2404dad7d /src/google/protobuf/stubs/strutil.cc
parentad5672bad71821354380959eaf80ea487b9007f2 (diff)
downloadprotobuf-3aa7a0dafe24faba4af8f70a257f74f07162e277.tar.gz
protobuf-3aa7a0dafe24faba4af8f70a257f74f07162e277.tar.bz2
protobuf-3aa7a0dafe24faba4af8f70a257f74f07162e277.zip
HPUX patch from Alexander Melnikov.
Diffstat (limited to 'src/google/protobuf/stubs/strutil.cc')
-rw-r--r--src/google/protobuf/stubs/strutil.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/google/protobuf/stubs/strutil.cc b/src/google/protobuf/stubs/strutil.cc
index a4764753..32b0f031 100644
--- a/src/google/protobuf/stubs/strutil.cc
+++ b/src/google/protobuf/stubs/strutil.cc
@@ -1027,7 +1027,7 @@ char* DoubleToBuffer(double value, char* buffer) {
bool safe_strtof(const char* str, float* value) {
char* endptr;
errno = 0; // errno only gets set on errors
-#ifdef _WIN32 // has no strtof()
+#if defined(_WIN32) || defined (__hpux) // has no strtof()
*value = strtod(str, &endptr);
#else
*value = strtof(str, &endptr);