summaryrefslogtreecommitdiffstatshomepage
path: root/scripts/src/osd/windows_cfg.lua
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/src/osd/windows_cfg.lua')
-rw-r--r--scripts/src/osd/windows_cfg.lua25
1 files changed, 15 insertions, 10 deletions
diff --git a/scripts/src/osd/windows_cfg.lua b/scripts/src/osd/windows_cfg.lua
index 2735e4df4f0..98893440f9f 100644
--- a/scripts/src/osd/windows_cfg.lua
+++ b/scripts/src/osd/windows_cfg.lua
@@ -3,16 +3,12 @@
defines {
"OSD_WINDOWS",
+ "UNICODE",
+ "_UNICODE",
"WIN32_LEAN_AND_MEAN",
"NOMINMAX",
}
-configuration { "mingw* or vs*" }
- defines {
- "UNICODE",
- "_UNICODE"
- }
-
configuration { "vs*" }
flags {
"Unicode",
@@ -33,16 +29,25 @@ if _OPTIONS["MODERN_WIN_API"]=="1" then
}
else
defines {
- "_WIN32_WINNT=0x0501",
+ "_WIN32_WINNT=0x0602",
+ "NTDDI_VERSION=0x06000000",
}
end
-if not _OPTIONS["DONT_USE_NETWORK"] then
+if _OPTIONS["USE_TAPTUN"]=="1" or _OPTIONS["USE_PCAP"]=="1" then
defines {
"USE_NETWORK",
- "OSD_NET_USE_PCAP",
- "OSD_NET_USE_TAPTUN",
}
+ if _OPTIONS["USE_TAPTUN"]=="1" then
+ defines {
+ "OSD_NET_USE_TAPTUN",
+ }
+ end
+ if _OPTIONS["USE_PCAP"]=="1" then
+ defines {
+ "OSD_NET_USE_PCAP",
+ }
+ end
end
if _OPTIONS["USE_SDL"]=="1" then