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