Wow, thanks everyone
>>There is something you can define before including windows.h - NO_DEFINE_MIN_MAX or something like that
Heh, oops..
Code:
#ifndef NOMINMAX
#ifndef max
#define max(a,b) (((a) > (b)) ? (a) : (b))
#endif
etc.
>>float nearest = (std::numeric_limits<float>::max)();
That worked too
@Lucky:
I just ran a quick test, this compiles fine:
Code:
int asdf()
{
return 5;
}
#define asdf(a,b) (a+b)
int main()
{
(asdf)();
return 0;
}
It also works if I define asdf as a const int and "cout << asdf". So I'm not sure what you mean..