summaryrefslogtreecommitdiffstats
path: root/osdep/main-fn-win.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-04 01:13:14 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-04 01:13:14 +0000
commit60e8a3d404f0640fa5a3f834eae54b4f1fb9127d (patch)
tree1da89a218d0ecf010c67a87cb2f625c4cb18e7d7 /osdep/main-fn-win.c
parentAdding upstream version 0.37.0. (diff)
downloadmpv-upstream.tar.xz
mpv-upstream.zip
Adding upstream version 0.38.0.upstream/0.38.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'osdep/main-fn-win.c')
-rw-r--r--osdep/main-fn-win.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/osdep/main-fn-win.c b/osdep/main-fn-win.c
index 16ea80b..cf2df57 100644
--- a/osdep/main-fn-win.c
+++ b/osdep/main-fn-win.c
@@ -1,4 +1,5 @@
#include <windows.h>
+#include <shellapi.h>
#ifndef BASE_SEARCH_PATH_ENABLE_SAFE_SEARCHMODE
#define BASE_SEARCH_PATH_ENABLE_SAFE_SEARCHMODE (0x0001)
@@ -12,7 +13,7 @@
#ifndef HEAP_OPTIMIZE_RESOURCES_CURRENT_VERSION
#define HEAP_OPTIMIZE_RESOURCES_CURRENT_VERSION 1
-enum { HeapOptimizeResources = 3 };
+#define HeapOptimizeResources ((HEAP_INFORMATION_CLASS)3)
struct HEAP_OPTIMIZE_RESOURCES_INFORMATION {
DWORD Version;