From: david Date: Sun, 17 Nov 2002 00:34:40 +0000 (+0000) Subject: MS patch from Norm Vine to fix min/max macro defs. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=65ce1a04b2f57ba2ff1444a42e03564fcd956bb5;p=simgear.git MS patch from Norm Vine to fix min/max macro defs. --- diff --git a/simgear/compiler.h b/simgear/compiler.h index e80b1826..eb6c1628 100644 --- a/simgear/compiler.h +++ b/simgear/compiler.h @@ -142,6 +142,11 @@ # define STL_STRING # define STL_STRSTREAM +# ifdef WIN32 + // keep windows.h from #defining min() max() macros +# define NOMINMAX +#endif + # else # error Time to upgrade. GNU compilers < 2.7 not supported # endif