Is there any predefined macro like _MSC_BUILD (supported vs2008) in visual studio 2005?

I hope to use any predefined macro such as _MSC_BUILD (from vs2008), because I want to use the compiler version number.

but i can't find this in vs2005.

Thank you for your help.

+3
source share
2 answers

A list of predefined macros for VS 2005 is displayed _MSC_VERfor compiler versions.

+1
source

In the days of VS2005 there were no (available) revision numbers, so, unfortunately, they are not. For a complete list of available macros, see the following website:

http://msdn.microsoft.com/en-us/library/b0084kay(VS.80).aspx

0

Source: https://habr.com/ru/post/1769373/