summaryrefslogtreecommitdiffstats
path: root/options/options.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-01-20 15:18:51 +0100
committerwm4 <wm4@nowhere>2015-01-20 15:18:51 +0100
commit6b24cb2756017d4cd0e2ec83d6f9b0cbfb260821 (patch)
treee09d4fd9ee047bc28926f7d11b10e74ac8b524e8 /options/options.c
parent6f5e5e6a9e9f1534282bdf21110bab980cc22164 (diff)
downloadmpv-6b24cb2756017d4cd0e2ec83d6f9b0cbfb260821.tar.bz2
mpv-6b24cb2756017d4cd0e2ec83d6f9b0cbfb260821.tar.xz
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 'options/options.c')
-rw-r--r--options/options.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/options/options.c b/options/options.c
index aeec497b84..06606b6c36 100644
--- a/options/options.c
+++ b/options/options.c
@@ -29,7 +29,7 @@
#include "config.h"
-#if HAVE_PRIORITY
+#ifdef _WIN32
#include <windows.h>
#endif
@@ -111,7 +111,7 @@ const m_option_t mp_opts[] = {
OPT_FLAG("msg-color", msg_color, CONF_GLOBAL | CONF_PRE_PARSE),
OPT_FLAG("msg-module", msg_module, CONF_GLOBAL),
OPT_FLAG("msg-time", msg_time, CONF_GLOBAL),
-#if HAVE_PRIORITY
+#ifdef _WIN32
OPT_CHOICE("priority", w32_priority, 0,
({"no", 0},
{"realtime", REALTIME_PRIORITY_CLASS},