# HG changeset patch # User Oleksandr Gavenko # Date 1321203772 -7200 # Node ID e1b19e1e70310f5cf219ca848ee0761369b3253f # Parent 66ecbe32a2af3d4644e94dc431be91b51d2cc21c Add info about _MSC_VER diff -r 66ecbe32a2af -r e1b19e1e7031 cpp.rst --- a/cpp.rst Sun Nov 13 18:57:57 2011 +0200 +++ b/cpp.rst Sun Nov 13 19:02:52 2011 +0200 @@ -22,6 +22,8 @@ http://predef.sourceforge.net/ http://en.wikipedia.org/wiki/C_preprocessor#Compiler-specific_predefined_macros + http://msdn.microsoft.com/en-us/library/b0084kay.aspx + Predefined Macros GNU C Compiler:: @@ -44,8 +46,11 @@ $ cc -qshowmacros -E EMPTY.c For Visual Studio compiler there no any possibility get predefined macros from -command line... +command line... But some macros documented: - http://msdn.microsoft.com/en-us/library/b0084kay.aspx - Predefined Macros + _MSC_VER + Defines the compiler version. Always defined. + _WIN32 + Defined for applications for Win32. Always defined. +