MSVC does not support designated initializers before C++20

This commit is contained in:
2025-09-23 17:06:29 +02:00
committed by Andrew Johnson
parent 271f20faa0
commit 232d9bec10

View File

@@ -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()]);