Detect Compaq compiler version with its id
Decode decimal digits from __DECC_VER and __DECCXX_VER to compute version number components. See documentation at: http://www.openvms.compaq.com/commercial/c/docs/5492p024.html#decc_ver_sec http://www.tru64unix.compaq.com/cplus/ugu_impl.html#predef_vernum http://sourceforge.net/p/predef/wiki/Compilers/#compaq-cchttpwwwopenvmscompaqcomopenvmsbrochuresdeccplus
This commit is contained in:
parent
addefc2ae3
commit
707aefd853
|
@ -67,6 +67,10 @@
|
||||||
|
|
||||||
#elif defined(__DECC)
|
#elif defined(__DECC)
|
||||||
# define COMPILER_ID "Compaq"
|
# define COMPILER_ID "Compaq"
|
||||||
|
/* __DECC_VER = VVRRTPPPP */
|
||||||
|
# define COMPILER_VERSION_MAJOR DEC(__DECC_VER/10000000)
|
||||||
|
# define COMPILER_VERSION_MINOR DEC(__DECC_VER/100000 % 100)
|
||||||
|
# define COMPILER_VERSION_PATCH DEC(__DECC_VER % 10000)
|
||||||
|
|
||||||
#elif defined(__IBMC__)
|
#elif defined(__IBMC__)
|
||||||
# if defined(__COMPILER_VER__)
|
# if defined(__COMPILER_VER__)
|
||||||
|
|
|
@ -69,6 +69,10 @@
|
||||||
|
|
||||||
#elif defined(__DECCXX)
|
#elif defined(__DECCXX)
|
||||||
# define COMPILER_ID "Compaq"
|
# define COMPILER_ID "Compaq"
|
||||||
|
/* __DECCXX_VER = VVRRTPPPP */
|
||||||
|
# define COMPILER_VERSION_MAJOR DEC(__DECCXX_VER/10000000)
|
||||||
|
# define COMPILER_VERSION_MINOR DEC(__DECCXX_VER/100000 % 100)
|
||||||
|
# define COMPILER_VERSION_PATCH DEC(__DECCXX_VER % 10000)
|
||||||
|
|
||||||
#elif defined(__IBMCPP__)
|
#elif defined(__IBMCPP__)
|
||||||
# if defined(__COMPILER_VER__)
|
# if defined(__COMPILER_VER__)
|
||||||
|
|
Loading…
Reference in New Issue