From 4ed41f3dab352757513cb8f5c49485de4bec6d6d Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Tue, 18 Sep 2007 10:47:03 +0000 Subject: strtof() is a rather recent addition to C. Fall back to strtod() if it isn't available. git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1853 fefdeb5f-60dc-0310-8127-8f9354f1896f --- src/pulsecore/core-util.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/pulsecore/core-util.c') diff --git a/src/pulsecore/core-util.c b/src/pulsecore/core-util.c index 6a0bd0ac..afd89bad 100644 --- a/src/pulsecore/core-util.c +++ b/src/pulsecore/core-util.c @@ -1300,7 +1300,11 @@ int pa_atof(const char *s, float *ret_f) { #endif { errno = 0; +#ifdef HAVE_STRTOF f = strtof(s, &x); +#else + f = strtod(s, &x); +#endif } if (!x || *x || errno != 0) -- cgit