mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-19 02:17:27 +08:00
Detect Watcom compiler version with its id
Decode decimal digits from __WATCOMC__ to compute the version number components. See documentation at: http://predef.sourceforge.net/precomp.html
This commit is contained in:
@@ -28,6 +28,8 @@
|
|||||||
|
|
||||||
#elif defined(__WATCOMC__)
|
#elif defined(__WATCOMC__)
|
||||||
# define COMPILER_ID "Watcom"
|
# define COMPILER_ID "Watcom"
|
||||||
|
# define COMPILER_VERSION_MAJOR DEC(__WATCOMC__ / 100)
|
||||||
|
# define COMPILER_VERSION_MINOR DEC(__WATCOMC__ % 100)
|
||||||
|
|
||||||
#elif defined(__SUNPRO_C)
|
#elif defined(__SUNPRO_C)
|
||||||
# define COMPILER_ID "SunPro"
|
# define COMPILER_ID "SunPro"
|
||||||
|
@@ -30,6 +30,8 @@
|
|||||||
|
|
||||||
#elif defined(__WATCOMC__)
|
#elif defined(__WATCOMC__)
|
||||||
# define COMPILER_ID "Watcom"
|
# define COMPILER_ID "Watcom"
|
||||||
|
# define COMPILER_VERSION_MAJOR DEC(__WATCOMC__ / 100)
|
||||||
|
# define COMPILER_VERSION_MINOR DEC(__WATCOMC__ % 100)
|
||||||
|
|
||||||
#elif defined(__SUNPRO_CC)
|
#elif defined(__SUNPRO_CC)
|
||||||
# define COMPILER_ID "SunPro"
|
# define COMPILER_ID "SunPro"
|
||||||
|
Reference in New Issue
Block a user