]> git.mxchange.org Git - flightgear.git/commitdiff
Fixed a bug report from Frederic Bouvier:
authordavid <david>
Wed, 27 Mar 2002 13:00:25 +0000 (13:00 +0000)
committerdavid <david>
Wed, 27 Mar 2002 13:00:25 +0000 (13:00 +0000)
A sloppy coder already defined min and max as macros with 2 arguments

src/Main/model.hxx

index 8054a908bfd06ecfce3ba23d551ae43732a6633c..d5b517b4cb57fb213781f8ebd2c11f3abc050cb1 100644 (file)
@@ -20,6 +20,14 @@ SG_USING_STD(vector);
 #include <simgear/misc/props.hxx>
 #include <simgear/timing/timestamp.hxx>
 
+// 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: