From 1a1bba5a3da60b1433509f54375f0c12db22b3c1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Duraffort?= Date: Thu, 10 Mar 2011 22:14:36 +0100 Subject: [PATCH] Android: hack to fix warnings in pthread.h when compiling in C++ --- include/vlc_fixups.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/include/vlc_fixups.h b/include/vlc_fixups.h index 4f96d09831..02f0dfa502 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 +# if __cplusplus == 0 +# undef __cplusplus +# endif +char *tempnam(const char *, const char *); +#endif // ANDROID + #endif /* !LIBVLC_FIXUPS_H */ -- 2.39.2