mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-24 01:31:46 +00:00
Remove some usages of windows.h (#1370)
For HAL and wpilib, we don't need them, especially where they were being used.
This commit is contained in:
committed by
Peter Johnson
parent
9f6544fa87
commit
9174f23f36
@@ -15,8 +15,7 @@
|
||||
#include <wpi/Twine.h>
|
||||
|
||||
#ifdef _WIN32
|
||||
#include <Windows.h>
|
||||
// Windows.h defines #define GetMessage GetMessageW, which we don't want.
|
||||
#pragma push_macro("GetMessage")
|
||||
#undef GetMessage
|
||||
#endif
|
||||
|
||||
@@ -65,3 +64,7 @@ class Error {
|
||||
};
|
||||
|
||||
} // namespace frc
|
||||
|
||||
#ifdef _WIN32
|
||||
#pragma pop_macro("GetMessage")
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user