summaryrefslogtreecommitdiff
path: root/pjlib/include/pj/compat/cc_armcc.h
diff options
context:
space:
mode:
Diffstat (limited to 'pjlib/include/pj/compat/cc_armcc.h')
-rw-r--r--pjlib/include/pj/compat/cc_armcc.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/pjlib/include/pj/compat/cc_armcc.h b/pjlib/include/pj/compat/cc_armcc.h
index 1761c228..ca25164c 100644
--- a/pjlib/include/pj/compat/cc_armcc.h
+++ b/pjlib/include/pj/compat/cc_armcc.h
@@ -30,9 +30,9 @@
#endif
#define PJ_CC_NAME "armcc"
-#define PJ_CC_VER_1 __ARMCC__
-#define PJ_CC_VER_2 __ARMCC_MINOR__
-#define PJ_CC_VER_3 __ARMCC_PATCHLEVEL__
+#define PJ_CC_VER_1 (__ARMCC_VERSION/100000)
+#define PJ_CC_VER_2 ((__ARMCC_VERSION%100000)/10000)
+#define PJ_CC_VER_3 (__ARMCC_VERSION%10000)
#ifdef __cplusplus
# define PJ_INLINE_SPECIFIER inline