summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/pulsecore/core-util.c4
1 files changed, 4 insertions, 0 deletions
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)