summaryrefslogtreecommitdiff
path: root/drivers/windows
diff options
context:
space:
mode:
authorBartłomiej T. Listwon <blistwon@gmail.com>2021-09-23 08:56:12 +0200
committerBartłomiej T. Listwon <blistwon@gmail.com>2021-09-23 10:35:00 +0200
commit425ed0ffe0880f2c63344c0861ddf37b346b9738 (patch)
treeeab2cefa6b2b636b0b9030b08a811ecfc788f18c /drivers/windows
parenta4b80cdad95e251d3066a6798cffc64bbf45a0e2 (diff)
Add missing WIN32_LEAN_AND_MEAN
Diffstat (limited to 'drivers/windows')
-rw-r--r--drivers/windows/dir_access_windows.cpp1
-rw-r--r--drivers/windows/file_access_windows.cpp1
2 files changed, 2 insertions, 0 deletions
diff --git a/drivers/windows/dir_access_windows.cpp b/drivers/windows/dir_access_windows.cpp
index f7a5f7279e..afaa3864cd 100644
--- a/drivers/windows/dir_access_windows.cpp
+++ b/drivers/windows/dir_access_windows.cpp
@@ -37,6 +37,7 @@
#include <stdio.h>
#include <wchar.h>
+#define WIN32_LEAN_AND_MEAN
#include <windows.h>
/*
diff --git a/drivers/windows/file_access_windows.cpp b/drivers/windows/file_access_windows.cpp
index 775c999b15..035c44a28c 100644
--- a/drivers/windows/file_access_windows.cpp
+++ b/drivers/windows/file_access_windows.cpp
@@ -37,6 +37,7 @@
#include <share.h> // _SH_DENYNO
#include <shlwapi.h>
+#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <errno.h>