1
mirror of https://code.videolan.org/videolan/vlc synced 2024-10-03 01:31:53 +02:00

include: wrap more compat functions in extern C block

This ensures they have the correct linkage declared.
This commit is contained in:
Marvin Scholz 2020-07-29 13:20:36 +02:00
parent 8edd1a300a
commit 0e3775e3ff

View File

@ -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)