I\'m using two computers, each with a different version of visual studio. On the visual studio 2008 computer my code compiles. On the visual 2010 computer my code doesn\'t compi
Protect it with an #ifndef.
#ifndef
#ifndef max #define max(a,b) ((a) > (b) ? (a) : (b)) #endif
Keep in mind that the version above is not as safe as an inline function, e.g. max(a++,b--) will cause unxpected results.
max(a++,b--)