From 232d9bec10d60b88e4f1f6b5d1d68a5aaa9ccbd0 Mon Sep 17 00:00:00 2001 From: Dirk Zimoch Date: Tue, 23 Sep 2025 17:06:29 +0200 Subject: [PATCH] MSVC does not support designated initializers before C++20 --- modules/libcom/src/fdmgr/fdManager.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/modules/libcom/src/fdmgr/fdManager.cpp b/modules/libcom/src/fdmgr/fdManager.cpp index 9e133d2ad..e25a0f787 100644 --- a/modules/libcom/src/fdmgr/fdManager.cpp +++ b/modules/libcom/src/fdmgr/fdManager.cpp @@ -187,19 +187,12 @@ LIBCOM_API void fdManager::process(double delay) ++ioPending; #ifdef FDMGR_USE_POLL -#if __cplusplus >= 201100L - priv->pollfds.emplace_back(pollfd{ - .fd = iter->getFD(), - .events = WIN_POLLEVENT_FILTER(PollEvents[iter->getType()]) - }); -#else struct pollfd pollfd; pollfd.fd = iter->getFD(); pollfd.events = WIN_POLLEVENT_FILTER(PollEvents[iter->getType()]); pollfd.revents = 0; priv->pollfds.push_back(pollfd); #endif -#endif #ifdef FDMGR_USE_SELECT FD_SET(iter->getFD(), &priv->fdSets[iter->getType()]);