Possible Duplicate:
Detect compiler with #ifdef
Greetings all,
I've been working on a C++ project using gcc on linux and mingw on windows.Now I want to use VC++ cl compiler on Windows. I was to keep the same source code tree only change the compiler specific logic like:
#ifdef VC_CL_COMPILER
//do vc++ related
#elif MINGW_FLAG
//do mingw related
#elseif GCC_FLAG
//do gc related
#endif
Anyway tips on doing this?