Skip to content

Commit 071a71e

Browse files
Fix compilation for MSVC
1 parent c4081bb commit 071a71e

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

services/echo_console/Main.cpp

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#include "args.hxx"
22
#include "hal/generic/FileSystemGeneric.hpp"
33
#include "hal/generic/SynchronousRandomDataGeneratorGeneric.hpp"
4+
#include "hal/generic/UartGeneric.hpp"
45
#include "infra/stream/IoOutputStream.hpp"
56
#include "infra/stream/StdVectorInputStream.hpp"
67
#include "infra/syntax/Json.hpp"
@@ -13,14 +14,16 @@
1314
#include "services/util/EchoPolicyDiffieHellman.hpp"
1415
#include "services/util/EchoPolicySymmetricKey.hpp"
1516
#include "services/util/SesameCobs.hpp"
17+
18+
#ifdef PeekMessage
19+
#undef PeekMessage
20+
#endif
21+
1622
#include "services/util/SesameSecured.hpp"
1723
#include "services/util/SesameWindowed.hpp"
1824
#include <deque>
1925
#include <fstream>
2026
#include <iostream>
21-
// clang-format off
22-
#include "hal/generic/UartGeneric.hpp" // Don't include before SesameWindowed.hpp due to windows.h #defining PeekMessage
23-
// clang-format on
2427

2528
class ConsoleClientUart
2629
: public application::ConsoleObserver

0 commit comments

Comments
 (0)