I have code:
#if _MSC_VER <= 1300
float round(float f)
{
if (f < 0)
return ceilf (f - 0.5);
else
return floorf (f + 0.5);
}
#endif
Lines above should compile only in old version of Visual C++ compiler.
I compill this code with MinGW compiller. There is no such symbol like _MSC_VER there, and it code doesn't have to compile, because the expression #if _MSC_VER <= 1300
must equals false. But, it compiles.
Could somebody explain me why does it happen?
Compile in MinGW is GNU 6.3.0.