mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-20 11:19:56 +00:00
Nits to have tests pass
This commit is contained in:
1 parent
2b836504ab
commit
a98e980c8f
7 files changed
+12
-16
No files matched your search
@@ -124,8 +124,9 @@ void mg_mgr_free(struct mg_mgr *mgr) {
|
||||
void mg_mgr_init(struct mg_mgr *mgr) {
|
||||
memset(mgr, 0, sizeof(*mgr));
|
||||
#if defined(_WIN32) && MG_ENABLE_WINSOCK
|
||||
WSADATA data;
|
||||
WSAStartup(MAKEWORD(2, 2), &data);
|
||||
// clang-format off
|
||||
{ WSADATA data; WSAStartup(MAKEWORD(2, 2), &data); }
|
||||
// clang-format on
|
||||
#elif MG_ARCH == MG_ARCH_FREERTOS_TCP
|
||||
mgr->ss = FreeRTOS_CreateSocketSet();
|
||||
#elif defined(__unix) || defined(__unix__) || defined(__APPLE__)
|
||||
|
||||
Reference in new issue
Block a user