MSVC does not support designated initializers before C++20
This commit is contained in:
@@ -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()]);
|
||||
|
||||
Reference in New Issue
Block a user