From 5ec0c135bc1630945626c1db5d0bf2cceb4c7373 Mon Sep 17 00:00:00 2001 From: david Date: Wed, 27 Mar 2002 13:00:25 +0000 Subject: [PATCH] Fixed a bug report from Frederic Bouvier: A sloppy coder already defined min and max as macros with 2 arguments --- src/Main/model.hxx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/Main/model.hxx b/src/Main/model.hxx index 8054a908b..d5b517b4c 100644 --- a/src/Main/model.hxx +++ b/src/Main/model.hxx @@ -20,6 +20,14 @@ SG_USING_STD(vector); #include #include +// Has anyone done anything *really* stupid, like making min and max macros? +#ifdef min +#undef min +#endif +#ifdef max +#undef max +#endif + class FGAircraftModel : public FGSubsystem { public: