diff --git a/src/net/SocketError.hxx b/src/net/SocketError.hxx index 1b8346d36..5c7ab6949 100644 --- a/src/net/SocketError.hxx +++ b/src/net/SocketError.hxx @@ -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