summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--options/options.c2
-rw-r--r--player/command.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/options/options.c b/options/options.c
index 5eec6070c6..56c6e3151a 100644
--- a/options/options.c
+++ b/options/options.c
@@ -269,7 +269,7 @@ const m_option_t mp_opts[] = {
OPT_STRING("log-file", log_file, CONF_PRE_PARSE | M_OPT_FILE | UPDATE_TERM),
OPT_FLAG("msg-module", msg_module, UPDATE_TERM),
OPT_FLAG("msg-time", msg_time, UPDATE_TERM),
-#ifdef _WIN32
+#if defined(_WIN32) && HAVE_GPL
OPT_CHOICE("priority", w32_priority, UPDATE_PRIORITY,
({"no", 0},
{"realtime", REALTIME_PRIORITY_CLASS},
diff --git a/player/command.c b/player/command.c
index 7facb7972e..c84007eb0d 100644
--- a/player/command.c
+++ b/player/command.c
@@ -5769,7 +5769,7 @@ void mp_notify(struct MPContext *mpctx, int event, void *arg)
static void update_priority(struct MPContext *mpctx)
{
-#ifdef _WIN32
+#if defined(_WIN32) && HAVE_GPL
struct MPOpts *opts = mpctx->opts;
if (opts->w32_priority > 0)
SetPriorityClass(GetCurrentProcess(), opts->w32_priority);