summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrissiom <[email protected]>2013-05-29 20:41:45 +0800
committerGrissiom <[email protected]>2013-05-29 23:36:10 +0800
commit9237433030447b807b9f6b269f899ddcfc04017e (patch)
tree83bb5fb6aaabc4b3f7b7e883fdf0a1b315a5a306
parent50c8cbe1d50d39911848c180bf9fd1fa0fddd89c (diff)
add TI CCS support micros in rtdef.h
-rw-r--r--include/rtdef.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/rtdef.h b/include/rtdef.h
index 9fb2b7bb07..b2267292cc 100644
--- a/include/rtdef.h
+++ b/include/rtdef.h
@@ -145,10 +145,13 @@ typedef rt_base_t rt_off_t; /**< Type for offset */
#define ALIGN(n) __declspec(align(n))
#define rt_inline static __inline
#define RTT_API
-#elif defined (__TI_EABI_SUPPORT__)
+#elif defined (__TI_COMPILER_VERSION__)
+ /* The way that TI compiler set section is different from other(at least
+ * GCC and MDK) compilers. See ARM Optimizing C/C++ Compiler 5.9.3 for more
+ * details. */
#define SECTION(x)
#define UNUSED
- #define ALIGN(n)
+ #define ALIGN(n)
#define rt_inline static inline
#define RTT_API
#else