forked from pytorch/pytorch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reorganize and refine the Windows.h import in C++ files (pytorch#48009)
Summary: This PR aims to reduce the import overhead and symbol noises from the `windows.h` headers. Pull Request resolved: pytorch#48009 Reviewed By: gchanan Differential Revision: D25045840 Pulled By: ezyang fbshipit-source-id: 01fda70f433ba2dd0cd2d7cd676ab6ffe9d98b90
- Loading branch information
1 parent
6d5d336
commit 8177f63
Showing
12 changed files
with
76 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
#pragma once | ||
|
||
#ifndef WIN32_LEAN_AND_MEAN | ||
#define WIN32_LEAN_AND_MEAN | ||
#endif | ||
#ifndef NOMINMAX | ||
#define NOMINMAX | ||
#endif | ||
#ifndef NOKERNEL | ||
#define NOKERNEL | ||
#endif | ||
#ifndef NOUSER | ||
#define NOUSER | ||
#endif | ||
#ifndef NOSERVICE | ||
#define NOSERVICE | ||
#endif | ||
#ifndef NOSOUND | ||
#define NOSOUND | ||
#endif | ||
#ifndef NOMCX | ||
#define NOMCX | ||
#endif | ||
#ifndef NOGDI | ||
#define NOGDI | ||
#endif | ||
#ifndef NOMSG | ||
#define NOMSG | ||
#endif | ||
#ifndef NOMB | ||
#define NOMB | ||
#endif | ||
#ifndef NOCLIPBOARD | ||
#define NOCLIPBOARD | ||
#endif | ||
|
||
#include <windows.h> | ||
#include <dbghelp.h> | ||
|
||
#undef VOID | ||
#undef DELETE | ||
#undef IN | ||
#undef THIS | ||
#undef CONST | ||
#undef NAN | ||
#undef UNKNOWN | ||
#undef NONE | ||
#undef ANY | ||
#undef IGNORE | ||
#undef STRICT | ||
#undef GetObject | ||
#undef CreateSemaphore | ||
#undef Yield | ||
#undef RotateRight32 | ||
#undef RotateLeft32 | ||
#undef RotateRight64 | ||
#undef RotateLeft64 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters