#include <winioctl.h> 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 `<windows.h>` transitively includes `<winioctl.h>` 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
This commit is contained in:
Yuriy Chernyshov 2022-03-13 17:01:21 -07:00 committed by Andrew Kryczka
parent 9f0a64c4f1
commit 7629bf17fe

View File

@ -9,6 +9,8 @@
#if defined(OS_WIN) #if defined(OS_WIN)
#include "port/win/env_win.h"
#include <direct.h> // _rmdir, _mkdir, _getcwd #include <direct.h> // _rmdir, _mkdir, _getcwd
#include <errno.h> #include <errno.h>
#include <io.h> // _access #include <io.h> // _access
@ -17,6 +19,7 @@
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/types.h> #include <sys/types.h>
#include <windows.h> #include <windows.h>
#include <winioctl.h>
#include <algorithm> #include <algorithm>
#include <ctime> #include <ctime>
@ -27,7 +30,6 @@
#include "monitoring/thread_status_util.h" #include "monitoring/thread_status_util.h"
#include "port/port.h" #include "port/port.h"
#include "port/port_dirent.h" #include "port/port_dirent.h"
#include "port/win/env_win.h"
#include "port/win/io_win.h" #include "port/win/io_win.h"
#include "port/win/win_logger.h" #include "port/win/win_logger.h"
#include "rocksdb/env.h" #include "rocksdb/env.h"