]> git.sesse.net Git - vlc/commitdiff
android: fix nanf detection
authorThomas Guillem <tom@gllm.fr>
Wed, 8 Oct 2014 16:26:07 +0000 (18:26 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Thu, 9 Oct 2014 17:31:33 +0000 (20:31 +0300)
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
configure.ac
include/vlc_fixups.h

index 2b13d5b4cfaa4ef5ec104ef980a4efd38ba3262b..616ba32ec7e5c314f6cfa59cf59276c43b0dc25e 100644 (file)
@@ -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=""
index a4b9b2d250c7dbae0ed80ac636238b5df7136e65..e515763c432c0e55a842912b460802ed7a1c8755 100644 (file)
@@ -353,7 +353,7 @@ long nrand48 (unsigned short subi[3]);
 
 /* math.h */
 
-#ifdef __ANDROID__
+#ifndef HAVE_NANF
 #define nanf(tagp) NAN
 #endif