summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTanu Kaskinen <tanu.kaskinen@linux.intel.com>2015-05-20 22:35:27 +0300
committerDavid Henningsson <david.henningsson@canonical.com>2015-09-07 14:54:27 +0200
commit27d71c00d8d8bf07b5109dc016d53c7d8c3a1975 (patch)
tree019629a3bc4655e24987e2d754297a8b68a9956d
parent031ca878216c76a508da45fc086fa19509406771 (diff)
downloadpulseaudio-27d71c00d8d8bf07b5109dc016d53c7d8c3a1975.tar.gz
build-sys: check strtod_l instead of strtof_l
We have no strtof_l calls in the code, so it doesn't make sense to check that function's availability. We have one strtod_l call, so let's check that instead. I don't know if this change makes any practical difference. I just wondered why we had HAVE_STRTOF_L ifdefs in core-util.c for code that didn't use strtof_l.
-rw-r--r--configure.ac2
-rw-r--r--src/pulsecore/core-util.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac
index 12512fcf8..093e8d8ab 100644
--- a/configure.ac
+++ b/configure.ac
@@ -572,7 +572,7 @@ AC_CHECK_FUNCS_ONCE([strerror_r])
AC_CHECK_FUNCS_ONCE([lstat])
# Non-standard
-AC_CHECK_FUNCS_ONCE([setresuid setresgid setreuid setregid seteuid setegid ppoll strsignal sig2str strtof_l pipe2 accept4])
+AC_CHECK_FUNCS_ONCE([setresuid setresgid setreuid setregid seteuid setegid ppoll strsignal sig2str strtod_l pipe2 accept4])
AC_FUNC_ALLOCA
diff --git a/src/pulsecore/core-util.c b/src/pulsecore/core-util.c
index ad5b2d249..824368a5a 100644
--- a/src/pulsecore/core-util.c
+++ b/src/pulsecore/core-util.c
@@ -52,7 +52,7 @@
#include <pcreposix.h>
#endif
-#ifdef HAVE_STRTOF_L
+#ifdef HAVE_STRTOD_L
#include <locale.h>
#endif
@@ -2401,7 +2401,7 @@ int pa_atol(const char *s, long *ret_l) {
return 0;
}
-#ifdef HAVE_STRTOF_L
+#ifdef HAVE_STRTOD_L
static locale_t c_locale = NULL;
static void c_locale_destroy(void) {
@@ -2431,7 +2431,7 @@ int pa_atod(const char *s, double *ret_d) {
/* This should be locale independent */
-#ifdef HAVE_STRTOF_L
+#ifdef HAVE_STRTOD_L
PA_ONCE_BEGIN {