]> git.sesse.net Git - vlc/commitdiff
Android: hack to fix warnings in pthread.h when compiling in C++
authorRémi Duraffort <ivoire@videolan.org>
Thu, 10 Mar 2011 21:14:36 +0000 (22:14 +0100)
committerRémi Duraffort <ivoire@videolan.org>
Sun, 20 Mar 2011 09:42:50 +0000 (10:42 +0100)
include/vlc_fixups.h

index 4f96d09831deb63c22a9e7f1957e302490361899..02f0dfa50298b4f81f06fda8c8a75d4a263780c7 100644 (file)
@@ -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 */