net/SocketError: use constexpr

This commit is contained in:
Max Kellermann 2021-04-06 13:59:56 +02:00
parent fd0e958e95
commit 4a1c231734

View File

@ -127,8 +127,7 @@ IsSocketErrorAcceptWouldBlock(socket_error_t code) noexcept
#endif
}
[[gnu::const]]
static inline bool
constexpr bool
IsSocketErrorInterruped(socket_error_t code) noexcept
{
#ifdef _WIN32
@ -138,8 +137,7 @@ IsSocketErrorInterruped(socket_error_t code) noexcept
#endif
}
[[gnu::const]]
static inline bool
constexpr bool
IsSocketErrorClosed(socket_error_t code) noexcept
{
#ifdef _WIN32