From c3248e54a427fdd5a264ef38a848261db8495937 Mon Sep 17 00:00:00 2001 From: Tim Angus Date: Fri, 18 Jul 2025 14:51:04 +0100 Subject: [PATCH] Undefine real error codes to fix warnings --- code/qcommon/net_ip.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/code/qcommon/net_ip.c b/code/qcommon/net_ip.c index bcccda20..621f1ba2 100644 --- a/code/qcommon/net_ip.c +++ b/code/qcommon/net_ip.c @@ -46,6 +46,13 @@ typedef int socklen_t; typedef unsigned short sa_family_t; # endif +// Undefine existing real error codes and replace +// with our pretend compatibility layer ones +# undef EAGAIN +# undef EADDRNOTAVAIL +# undef EAFNOSUPPORT +# undef ECONNRESET + # define EAGAIN WSAEWOULDBLOCK # define EADDRNOTAVAIL WSAEADDRNOTAVAIL # define EAFNOSUPPORT WSAEAFNOSUPPORT