Alex Rivera | Logout

Is there a preprocessor define that is defined if the compiler is MSVC?

Asked 2011-05-01T18:18:35.650
64

So I can do something like

#ifdef MSVC
//do compiler specific code here
#endif
Edit
Report

1 Answer

2

_MSC_VER should fit your needs

answered 2011-05-01T18:22:25.080

Your Answer