Remove an explicit include of debugapi.h

The documentation for IsDebuggerPresent says that one just should
include windows.h, as that one is an umbrella header that includes
the header that declares IsDebuggerPresent. In older Windows SDKs,
debugapi.h didn't exist and IsDebuggerPresent was declared in
winbase.h (also included by windows.h).

This should fix issue #2822 properly.
This commit is contained in:
Martin Storsjö 2020-05-08 10:19:57 +03:00
parent 09f587512a
commit d86e9e23ce

View File

@ -86,7 +86,6 @@
#ifdef _MSC_VER
# include <crtdbg.h> // NOLINT
# include <debugapi.h> // NOLINT
#endif
# include <io.h> // NOLINT