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:
parent
8edd1a300a
commit
0e3775e3ff
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user