Brad King 2011-12-06 12:07:35 -05:00
parent 4080d5510e
commit 6dae6660fc
2 changed files with 16 additions and 6 deletions

View File

@ -38,10 +38,15 @@
#elif defined(__IBMC__) #elif defined(__IBMC__)
# if defined(__COMPILER_VER__) # if defined(__COMPILER_VER__)
# define COMPILER_ID "zOS" # define COMPILER_ID "zOS"
# elif __IBMC__ >= 800
# define COMPILER_ID "XL"
# else # else
# define COMPILER_ID "VisualAge" # if __IBMC__ >= 800
# define COMPILER_ID "XL"
# else
# define COMPILER_ID "VisualAge"
# endif
# define COMPILER_VERSION_MAJOR DEC(__IBMC__/100)
# define COMPILER_VERSION_MINOR DEC(__IBMC__/10 % 10)
# define COMPILER_VERSION_PATCH DEC(__IBMC__ % 10)
# endif # endif
#elif defined(__PGI) #elif defined(__PGI)

View File

@ -40,10 +40,15 @@
#elif defined(__IBMCPP__) #elif defined(__IBMCPP__)
# if defined(__COMPILER_VER__) # if defined(__COMPILER_VER__)
# define COMPILER_ID "zOS" # define COMPILER_ID "zOS"
# elif __IBMCPP__ >= 800
# define COMPILER_ID "XL"
# else # else
# define COMPILER_ID "VisualAge" # if __IBMCPP__ >= 800
# define COMPILER_ID "XL"
# else
# define COMPILER_ID "VisualAge"
# endif
# define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
# define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
# define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
# endif # endif
#elif defined(__PGI) #elif defined(__PGI)