From 679fce4ef27a5cfce50bd715cd31fbe4de95795e Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Thu, 31 Oct 2002 05:18:08 +0000 Subject: [PATCH] always use min/max workaround in vc6 --- stepmania/src/StdAfx.h | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/stepmania/src/StdAfx.h b/stepmania/src/StdAfx.h index c70c788b95..ae15274a5d 100644 --- a/stepmania/src/StdAfx.h +++ b/stepmania/src/StdAfx.h @@ -34,6 +34,7 @@ #define NOMINMAX /* make sure Windows doesn't try to define this */ #include // MFC core and standard components + /* Make sure everyone has min and max: */ #include @@ -55,10 +56,11 @@ using namespace std; #include #if 0 -#include "StdString.h" /* Use CStdString: */ +#include "StdString.h" #define CString CStdString + #else /* Wrapper to use getline() on MFC strings. */ @@ -87,6 +89,12 @@ public: }; #define CString CStringTemp +#endif + +#endif + +#if _MSC_VER < 1300 /* VC6, not VC7 */ + /* VC6's is doesn't actually define min and max. */ template inline const T& max(const T &a, const T &b) @@ -103,8 +111,6 @@ inline const T& min(const T &a, const T &b, P Pr) #endif -#endif - template class StdCArray: public std::vector {}; #define CArray StdCArray