From 7629bf17fea68a65da29db715f2bc70e5fc47116 Mon Sep 17 00:00:00 2001 From: Yuriy Chernyshov Date: Sun, 13 Mar 2022 17:01:21 -0700 Subject: [PATCH] #include as MSDN prescribes (#9612) Summary: The recommendation can be found e. g. [here](https://docs.microsoft.com/en-us/windows/win32/api/winioctl/ns-winioctl-storage_property_query). While `` transitively includes `` by default, this can be switched off by `/DWIN32_LEAN_AND_MEAN` which forces the user to include-what-you-use. Pull Request resolved: https://github.com/facebook/rocksdb/pull/9612 Reviewed By: riversand963 Differential Revision: D34845629 Pulled By: ajkr fbshipit-source-id: 1ef9273074e3d84864c6833a7de6eb9df81e29d9 --- port/win/env_win.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/port/win/env_win.cc b/port/win/env_win.cc index 3108cf6e7..7ee58a85b 100644 --- a/port/win/env_win.cc +++ b/port/win/env_win.cc @@ -9,6 +9,8 @@ #if defined(OS_WIN) +#include "port/win/env_win.h" + #include // _rmdir, _mkdir, _getcwd #include #include // _access @@ -17,6 +19,7 @@ #include #include #include +#include #include #include @@ -27,7 +30,6 @@ #include "monitoring/thread_status_util.h" #include "port/port.h" #include "port/port_dirent.h" -#include "port/win/env_win.h" #include "port/win/io_win.h" #include "port/win/win_logger.h" #include "rocksdb/env.h"