missing: use WINAPI_FAMILY to disable spawn API's

This commit is contained in:
Steve Lhomme 2023-05-17 10:40:30 +02:00
parent 3ec542baf6
commit 7272112fd2
1 changed files with 9 additions and 1 deletions

View File

@ -274,10 +274,18 @@ _Noreturn void vlc_control_cancel (vlc_cleanup_t *cleaner)
}
#endif
#if !defined(_WIN32)
# define HAVE_WEAK_SPAWN
#else
# if !WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
# define HAVE_WEAK_SPAWN
# endif
#endif
#ifdef HAVE_WEAK_SPAWN
#include <errno.h>
#include <vlc_spawn.h>
#if !defined(_WIN32) || defined(VLC_WINSTORE_APP)
VLC_WEAK
int vlc_spawn(pid_t *pid, const char *file, const int *fds,
const char *const *args)