views:

19

answers:

2

I hope for using any predefined macro like _MSC_BUILD (from vs2008) because I want to use revision number of compiler.

but i can't find that in vs2005.

thank you for your help.

+1  A: 

The predefined macros list for VS 2005 shows _MSC_VER for getting the compiler versions.

heavyd
Unfortunately, _MSC_VER is not revision number. thanks.
whiteapplecompany
A: 

There were no (accessible) revision numbers in the days of VS2005, so sadly, no there isn't. See the following web site for a full list of available macros:

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

Michael Goldshteyn