suyu/src/core/hle
comex 0791082b43 network, sockets: Replace POLL_IN, POLL_OUT, etc. constants with an enum class PollEvents
Actually, two enum classes, since for some reason there are two separate
yet identical `PollFD` types used in the codebase.  I get that one is
ABI-compatible with the Switch while the other is an abstract type used
for the host, but why not use `WSAPOLLFD` directly for the latter?

Anyway, why make this change?  Because on Apple platforms, `POLL_IN`,
`POLL_OUT`, etc. (with an underscore) are defined as macros in
<sys/signal.h>.  (This is inherited from FreeBSD.)  So defining
a variable with the same name causes a compile error.

I could just rename the variables, but while I was at it I thought I
might as well switch to an enum for stronger typing.

Also, change the type used for values copied directly to/from the
`events` and `revents` fields of the host *native*
`pollfd`/`WSASPOLLFD`, from `u32` to `short`, as `short` is the correct
canonical type on both Unix and Windows.
2020-12-06 19:14:42 -05:00
..
kernel Fix "explicitly defaulted but implicitly deleted" warning 2020-12-06 19:02:04 -05:00
service network, sockets: Replace POLL_IN, POLL_OUT, etc. constants with an enum class PollEvents 2020-12-06 19:14:42 -05:00
ipc.h common_func: Use std::array for INSERT_PADDING_* macros. 2019-11-03 22:22:41 -05:00
ipc_helpers.h ipc_helpers: Remove usage of the global system instance 2020-11-08 15:58:11 -05:00
lock.cpp Fix build on macOS and linux 2018-01-13 22:38:52 +00:00
lock.h Use recursive_mutex instead of mutex to fix #2902 2017-08-29 20:39:55 +12:00
result.h audio_core: Make shadowing and unused parameters errors 2020-12-03 00:54:31 -05:00