[vlc-devel] [RFC PATCH 4/6] android: fix nanf detection

Thomas Guillem tom at gllm.fr
Wed Oct 8 18:26:07 CEST 2014


---
 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
 
-- 
2.1.0




More information about the vlc-devel mailing list