File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed
example/sample-projects/system-architecture-no-deps Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 1313#include " AlarmMgr.h"
1414#include " DataMgr.h"
1515#include " ClientApp.h"
16- #include " predef/util/WinsockConnect.h"
1716#include < thread>
1817
18+ #ifdef _WIN32
19+ #include " predef/util/WinsockConnect.h"
20+ #endif
21+
1922#ifdef DMQ_LOG
2023#ifdef _WIN32
2124// https://github.com/gabime/spdlog
@@ -74,8 +77,10 @@ int main()
7477#endif
7578#endif
7679
80+ #ifdef _WIN32
7781 // Starts Winsock now; automatically cleans up when main exits.
7882 WinsockContext wsContext;
83+ #endif
7984
8085 std::cout << " Client start!" << std::endl;
8186
Original file line number Diff line number Diff line change 1212#include " NetworkMgr.h"
1313#include " AlarmMgr.h"
1414#include " ServerApp.h"
15- #include " predef/util/WinsockConnect.h"
1615#include < thread>
1716
17+ #ifdef _WIN32
18+ #include " predef/util/WinsockConnect.h"
19+ #endif
20+
1821#ifdef DMQ_LOG
1922#ifdef _WIN32
2023// https://github.com/gabime/spdlog
@@ -53,8 +56,10 @@ int main()
5356#endif
5457#endif
5558
59+ #ifdef _WIN32
5660 // Starts Winsock now; automatically cleans up when main exits.
5761 WinsockContext wsContext;
62+ #endif
5863
5964 std::cout << " Server start!" << std::endl;
6065
You can’t perform that action at this time.
0 commit comments