aboutsummaryrefslogtreecommitdiffhomepage
path: root/player
diff options
context:
space:
mode:
authorGravatar wm4 <wm4@nowhere>2015-01-20 15:18:51 +0100
committerGravatar wm4 <wm4@nowhere>2015-01-20 15:18:51 +0100
commit6b24cb2756017d4cd0e2ec83d6f9b0cbfb260821 (patch)
treee09d4fd9ee047bc28926f7d11b10e74ac8b524e8 /player
parent6f5e5e6a9e9f1534282bdf21110bab980cc22164 (diff)
win32: remove check for SetPriorityClass()
This function is always available, which is reflected by the fact that the configure check doesn't actually bother to check for its existence. Instead, MinGW and Cygwin imply it. The check was probably "needed" when the priority code was still in a separate source file. Remove the check, and use _WIN32 for testing for the win32 API (in a bunch of other places too).
Diffstat (limited to 'player')
-rw-r--r--player/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/player/main.c b/player/main.c
index a51b2a2f0e..2dfc9b5dde 100644
--- a/player/main.c
+++ b/player/main.c
@@ -63,7 +63,7 @@
#include "command.h"
#include "screenshot.h"
-#if defined(__MINGW32__) || defined(__CYGWIN__)
+#ifdef _WIN32
#include <windows.h>
#ifndef BASE_SEARCH_PATH_ENABLE_SAFE_SEARCHMODE
@@ -287,7 +287,7 @@ static void osdep_preinit(int *p_argc, char ***p_argv)
mp_get_converted_argv(p_argc, p_argv);
#endif
-#if defined(__MINGW32__) || defined(__CYGWIN__)
+#ifdef _WIN32
// stop Windows from showing all kinds of annoying error dialogs
SetErrorMode(SEM_FAILCRITICALERRORS | SEM_NOOPENFILEERRORBOX);
@@ -525,7 +525,7 @@ int mpv_main(int argc, char *argv[])
exit_player(mpctx, EXIT_NONE);
}
-#if HAVE_PRIORITY
+#ifdef _WIN32
if (opts->w32_priority > 0)
SetPriorityClass(GetCurrentProcess(), opts->w32_priority);
#endif