summaryrefslogtreecommitdiffstats
path: root/osdep/main-fn-win.c
diff options
context:
space:
mode:
authorKacper Michajłow <kasper93@gmail.com>2023-11-24 07:19:19 +0100
committersfan5 <sfan5@live.de>2023-11-25 12:38:20 +0100
commited107c4116c246acad2afba3b93e0e0d8d4a8d4e (patch)
tree6fbcee523502823b2c6298a71ae3bf26310c1560 /osdep/main-fn-win.c
parentdff48031a1145fce08cd84d386bb1750d4967618 (diff)
downloadmpv-ed107c4116c246acad2afba3b93e0e0d8d4a8d4e.tar.bz2
mpv-ed107c4116c246acad2afba3b93e0e0d8d4a8d4e.tar.xz
meson: adjust win32 defines
- Don't define _GNU_SOURCE on Windows, no need - Define WIN32_LEAN_AND_MEAN to strip some unneded headers from windows.h - Define NOMINMAX and _USE_MATH_DEFINES as they are common for Windows headers
Diffstat (limited to 'osdep/main-fn-win.c')
-rw-r--r--osdep/main-fn-win.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/osdep/main-fn-win.c b/osdep/main-fn-win.c
index 16ea80bc7f..dfccb4c910 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)