From 896dc5afecb38812e3839a57209699efdfd18f69 Mon Sep 17 00:00:00 2001 From: Alexandre Duret-Lutz Date: Sun, 28 Nov 2004 19:42:10 +0000 Subject: [PATCH] * src/tgbatest/randtgba.cc (to_float): Use strtod() instead of strtof() to please Solaris 9. --- ChangeLog | 3 +++ src/tgbatest/randtgba.cc | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index c8df8ca7e..076d81021 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2004-11-28 Alexandre Duret-Lutz + * src/tgbatest/randtgba.cc (to_float): Use strtod() instead of + strtof() to please Solaris 9. + * configure.ac (AM_INIT_AUTOMAKE): Use option tar-ustar, we have filenames longer than 99 bytes. diff --git a/src/tgbatest/randtgba.cc b/src/tgbatest/randtgba.cc index 0a8195089..19d6b868b 100644 --- a/src/tgbatest/randtgba.cc +++ b/src/tgbatest/randtgba.cc @@ -98,7 +98,8 @@ float to_float(const char* s) { char* endptr; - float res = strtof(s, &endptr); + // Do not use strtof(), it does not exist on Solaris 9. + float res = strtod(s, &endptr); if (*endptr) { std::cerr << "Failed to parse `" << s << "' as a float." << std::endl;