From e9ae19df7b421f93ba789bedc9948cbde84a71ea Mon Sep 17 00:00:00 2001 From: Freddie Witherden Date: Sun, 16 Dec 2007 18:32:38 +0000 Subject: [PATCH] Fix warning about redefinition of MIN/MAX on OS X (as arpa/inet.h also contains MIN MAX macros) git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3081 4a71c877-e1ca-e34f-864e-861f7616d084 --- lib/netplay/nettypes.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/netplay/nettypes.c b/lib/netplay/nettypes.c index 9c362d83b..bb95eeb94 100644 --- a/lib/netplay/nettypes.c +++ b/lib/netplay/nettypes.c @@ -31,6 +31,10 @@ # include #else # include +#ifdef WZ_OS_MAC +# undef MIN +# undef MAX +#endif #endif #include "../framework/frame.h"