mirror of https://github.com/mpv-player/mpv
build: make cygwin use *nix timers
This commit is contained in:
parent
58bf7fd1f3
commit
49f076d86d
|
@ -121,7 +121,7 @@ static MP_NORETURN void exit_player(struct MPContext *mpctx,
|
||||||
mp_lua_uninit(mpctx);
|
mp_lua_uninit(mpctx);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(__MINGW32__) || defined(__CYGWIN__)
|
#if defined(__MINGW32__)
|
||||||
timeEndPeriod(1);
|
timeEndPeriod(1);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -96,7 +96,6 @@ def build(ctx):
|
||||||
|
|
||||||
timer_c = {
|
timer_c = {
|
||||||
'win32': 'osdep/timer-win2.c',
|
'win32': 'osdep/timer-win2.c',
|
||||||
'cygwin': 'osdep/timer-win2.c',
|
|
||||||
'darwin': 'osdep/timer-darwin.c',
|
'darwin': 'osdep/timer-darwin.c',
|
||||||
}.get(ctx.env.DEST_OS, "osdep/timer-linux.c")
|
}.get(ctx.env.DEST_OS, "osdep/timer-linux.c")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue