Apologies for abruptly reverting things, but compilation in Windows is

highest priority.  See my post to stepmania-devs for explanations.
This commit is contained in:
Glenn Maynard
2003-04-20 21:28:02 +00:00
parent e55fc3fdc7
commit c3c090799d
2 changed files with 9 additions and 10 deletions
+6 -10
View File
@@ -24,16 +24,12 @@
#define ZERO(x) memset(&x, 0, sizeof(x))
#define COPY(a,b) { ASSERT(sizeof(a)==sizeof(b)); memcpy(&a, &b, sizeof(a)); }
/* Common harmless mismatches. */
/* replace both with a single function (same with max)
* --Steve */
#ifndef min
inline float min(float a, float b) { return a < b? a:b; }
#endif
#ifndef max
inline float max(float a, float b) { return a > b? a:b; }
#endif
/* Common harmless mismatches. All min(T,T) and max(T,T) cases are handled
* by the generic template we get from <algorithm>. */
inline float min(float a, int b) { return a < b? a:b; }
inline float min(int a, float b) { return a < b? a:b; }
inline float max(float a, int b) { return a > b? a:b; }
inline float max(int a, float b) { return a > b? a:b; }
/* Traditional defines. Only use this if you absolutely need
* a constant value. */
+3
View File
@@ -124,6 +124,8 @@ inline const T& min(const T &a, const T &b, P Pr)
#endif
/* Define a few functions if necessary */
/* This is the wrong way to do this; see my post to sm-devs. -glenn */
#if 0
#ifndef powf
#define powf (float)pow
#endif
@@ -143,6 +145,7 @@ inline const T& min(const T &a, const T &b, P Pr)
#ifndef acosf
#define acosf (float)acos
#endif
#endif
/* Don't include our own headers here, since they tend to change
* often. */