vlc | branch: master | Marvin Scholz <epira...@gmail.com> | Wed Jul 29 13:20:36 2020 +0200| [0e3775e3ff4ed4f1336fb353e1d6614758429d6f] | committer: Marvin Scholz
include: wrap more compat functions in extern C block This ensures they have the correct linkage declared. > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0e3775e3ff4ed4f1336fb353e1d6614758429d6f --- include/vlc_fixups.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/vlc_fixups.h b/include/vlc_fixups.h index 15ebb0bd20..51286f56d6 100644 --- a/include/vlc_fixups.h +++ b/include/vlc_fixups.h @@ -295,6 +295,10 @@ static inline char *getenv (const char *name) } #endif +#ifdef __cplusplus +extern "C" { +#endif + #ifndef HAVE_SETENV int setenv (const char *, const char *, int); int unsetenv (const char *); @@ -308,6 +312,10 @@ int posix_memalign(void **, size_t, size_t); void *aligned_alloc(size_t, size_t); #endif +#ifdef __cplusplus +} /* extern "C" */ +#endif + #if defined (_WIN32) && defined(__MINGW32__) #define aligned_free(ptr) __mingw_aligned_free(ptr) #elif defined (_WIN32) && defined(_MSC_VER) _______________________________________________ vlc-commits mailing list vlc-commits@videolan.org https://mailman.videolan.org/listinfo/vlc-commits