Commit 4a1c2317 authored by Max Kellermann's avatar Max Kellermann

net/SocketError: use `constexpr`

parent fd0e958e
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment