[vlc-commits] android: fix nanf detection
Thomas Guillem
git at videolan.org
Thu Oct 9 19:31:43 CEST 2014
vlc | branch: master | Thomas Guillem <tom at gllm.fr> | Wed Oct 8 18:26:07 2014 +0200| [e8ba575485b1365edc28a94771b032afbbdb5c97] | committer: Rémi Denis-Courmont
android: fix nanf detection
Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e8ba575485b1365edc28a94771b032afbbdb5c97
---
configure.ac | 3 +++
include/vlc_fixups.h | 2 +-
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac
index 2b13d5b..616ba32 100644
--- a/configure.ac
+++ b/configure.ac
@@ -696,6 +696,9 @@ AC_CHECK_LIB(m,lrintf, [
AC_DEFINE(HAVE_LRINTF, 1, [Define to 1 if you have the lrintf function])
VLC_ADD_LIBS([skins2],[-lm])
])
+AC_CHECK_LIB(m,nanf,
+ AC_DEFINE(HAVE_NANF, 1, [Define to 1 if you have the NANF function])
+)
dnl Check for dynamic plugins
LIBDL=""
diff --git a/include/vlc_fixups.h b/include/vlc_fixups.h
index a4b9b2d..e515763 100644
--- a/include/vlc_fixups.h
+++ b/include/vlc_fixups.h
@@ -353,7 +353,7 @@ long nrand48 (unsigned short subi[3]);
/* math.h */
-#ifdef __ANDROID__
+#ifndef HAVE_NANF
#define nanf(tagp) NAN
#endif
More information about the vlc-commits
mailing list