[vlc-commits] Android: hack to fix warnings in pthread.h when compiling in C++

Rémi Duraffort git at videolan.org
Sun Mar 20 10:43:00 CET 2011


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Thu Mar 10 22:14:36 2011 +0100| [1a1bba5a3da60b1433509f54375f0c12db22b3c1] | committer: Rémi Duraffort

Android: hack to fix warnings in pthread.h when compiling in C++

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

 include/vlc_fixups.h |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/include/vlc_fixups.h b/include/vlc_fixups.h
index 4f96d09..02f0dfa 100644
--- a/include/vlc_fixups.h
+++ b/include/vlc_fixups.h
@@ -284,4 +284,16 @@ long jrand48 (unsigned short subi[3]);
 long nrand48 (unsigned short subi[3]);
 #endif
 
+#ifdef __ANDROID__
+# undef __linux__
+# ifndef __cplusplus
+#  define __cplusplus 0
+# endif
+# include <pthread.h>
+# if __cplusplus == 0
+#  undef __cplusplus
+# endif
+char *tempnam(const char *, const char *);
+#endif // ANDROID
+
 #endif /* !LIBVLC_FIXUPS_H */



More information about the vlc-commits mailing list