[vlc-commits] Fix the compilation on Android because of incomplete libc.

Adrien Maglo git at videolan.org
Fri May 23 10:00:09 CEST 2014


vlc | branch: master | Adrien Maglo <magsoft at videolan.org> | Thu May 22 17:40:09 2014 +0200| [52227381eb0661681cb159d65d6aa69bda623f3a] | committer: Adrien Maglo

Fix the compilation on Android because of incomplete libc.

The nanf function is missing.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=52227381eb0661681cb159d65d6aa69bda623f3a
---

 include/vlc_fixups.h |    6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/include/vlc_fixups.h b/include/vlc_fixups.h
index 26bba5e..c3d5fac 100644
--- a/include/vlc_fixups.h
+++ b/include/vlc_fixups.h
@@ -343,4 +343,10 @@ long nrand48 (unsigned short subi[3]);
 # undef HAVE_FORK   /* Implementation of fork() is imperfect on OS/2 */
 #endif
 
+/* math.h */
+
+#ifdef __ANDROID__
+#define nanf(tagp) NAN
+#endif
+
 #endif /* !LIBVLC_FIXUPS_H */



More information about the vlc-commits mailing list