In Microsoft Visual C++, I can use the macros _MSC_VER
for compiler identification and _MSC_FULL_VER
for its version number to retrieve the data of the used compiler at runtime of my C program. But they don't seem to exist in legacy Microsoft C 5.10. Borland C++, CLANG, GCC, Turbo C/C++ and Watcom C++ have similar macro definitions. ( __BORLANDC__
, __clang__
, __GNUC__
, __TURBOC__
and __WATCOMC__
)
But I couldn't find a macro for the legacy Microsoft C 5.10 compiler. I also couldn't find any information about it in the following list: Pre-defined Compiler Macros Wiki
Is there a macro for this compiler that could be evaluated to obtain the name (identifcation) and version of the compiler at runtime of my program? Or is there maybe a C function that is shipped with the compiler and does the same thing?