equal
deleted
inserted
replaced
20 |
20 |
21 See: |
21 See: |
22 |
22 |
23 http://predef.sourceforge.net/ |
23 http://predef.sourceforge.net/ |
24 http://en.wikipedia.org/wiki/C_preprocessor#Compiler-specific_predefined_macros |
24 http://en.wikipedia.org/wiki/C_preprocessor#Compiler-specific_predefined_macros |
|
25 http://msdn.microsoft.com/en-us/library/b0084kay.aspx |
|
26 Predefined Macros |
25 |
27 |
26 GNU C Compiler:: |
28 GNU C Compiler:: |
27 |
29 |
28 $ gcc -dM -E - < /dev/null |
30 $ gcc -dM -E - < /dev/null |
29 |
31 |
42 IBM AIX XL C/C++ compiler:: |
44 IBM AIX XL C/C++ compiler:: |
43 |
45 |
44 $ cc -qshowmacros -E EMPTY.c |
46 $ cc -qshowmacros -E EMPTY.c |
45 |
47 |
46 For Visual Studio compiler there no any possibility get predefined macros from |
48 For Visual Studio compiler there no any possibility get predefined macros from |
47 command line... |
49 command line... But some macros documented: |
48 |
50 |
49 http://msdn.microsoft.com/en-us/library/b0084kay.aspx |
51 _MSC_VER |
50 Predefined Macros |
52 Defines the compiler version. Always defined. |
|
53 _WIN32 |
|
54 Defined for applications for Win32. Always defined. |
51 |
55 |
|
56 |