[vlc-commits] Fix issues with replaced compat functions in C++ modules

Jean-Baptiste Kempf git at videolan.org
Thu Aug 28 08:29:31 CEST 2014


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Tue Aug 26 19:37:06 2014 +0000| [dac278775ae14655179ed4a40231043a5b786f40] | committer: Jean-Baptiste Kempf

Fix issues with replaced compat functions in C++ modules

Notably poll, inet*, swab, *rand48, and tsearch

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

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

diff --git a/include/vlc_fixups.h b/include/vlc_fixups.h
index c3d5fac..a4b9b2d 100644
--- a/include/vlc_fixups.h
+++ b/include/vlc_fixups.h
@@ -256,6 +256,10 @@ static inline locale_t newlocale(int mask, const char * locale, locale_t base)
 #define N_(str)           gettext_noop (str)
 #define gettext_noop(str) (str)
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 #ifndef HAVE_SWAB
 void swab (const void *, void *, ssize_t);
 #endif
@@ -339,6 +343,10 @@ long jrand48 (unsigned short subi[3]);
 long nrand48 (unsigned short subi[3]);
 #endif
 
+#ifdef __cplusplus
+} /* extern "C" */
+#endif
+
 #ifdef __OS2__
 # undef HAVE_FORK   /* Implementation of fork() is imperfect on OS/2 */
 #endif



More information about the vlc-commits mailing list