Browse Source

missing: simplify code

- we only need vlc_spawn.h for the vlc_spawn declarations
- HAVE_WEAK_SPAWNP can be set all the time except it's not supported on Windows
- UWP doesn't build win32/spawn.c so we need HAVE_WEAK_SPAWNP
pull/200/head
Steve Lhomme 2 months ago
parent
commit
22db4493ea
  1. 14
      src/missing.c

14
src/missing.c

@ -148,20 +148,14 @@ _Noreturn void vlc_control_cancel (vlc_cleanup_t *cleaner)
}
#endif
#if !defined(_WIN32)
#if !defined(_WIN32) // VLC_WEAK not supported
# define HAVE_WEAK_SPAWNP
#elif !WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
# define HAVE_WEAK_SPAWNP
#else
# if !WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
# define HAVE_WEAK_SPAWNP
# endif
#endif
#if !defined(HAVE_VLC_PROCESS_SPAWN) || defined(HAVE_WEAK_SPAWNP)
#include <errno.h>
#include <vlc_spawn.h>
#endif
#if defined(HAVE_WEAK_SPAWNP)
#include <vlc_spawn.h>
VLC_WEAK
int vlc_spawn(pid_t *pid, const char *file, const int *fds,
const char *const *args)

Loading…
Cancel
Save