change the ALIGN definition for IAR compiler.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@780 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
parent
b2f78b2e77
commit
5900cc0c73
|
@ -71,11 +71,12 @@ typedef rt_uint32_t rt_off_t; /* Type for offset. */
|
||||||
#define RTT_API __declspec(dllexport)
|
#define RTT_API __declspec(dllexport)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#elif defined (__ICCARM__) /* for IAR Compiler */
|
#elif defined (__IAR_SYSTEMS_ICC__) /* for IAR Compiler */
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#define SECTION(x) @ x
|
#define SECTION(x) @ x
|
||||||
#define UNUSED
|
#define UNUSED
|
||||||
#define ALIGN(n) #pragma data_alignment=n
|
#define PRAGMA(x) _Pragma(#x)
|
||||||
|
#define ALIGN(n) PRAGMA(data_alignment=n)
|
||||||
#define rt_inline inline
|
#define rt_inline inline
|
||||||
#define RTT_API
|
#define RTT_API
|
||||||
|
|
||||||
|
@ -101,14 +102,6 @@ typedef rt_uint32_t rt_off_t; /* Type for offset. */
|
||||||
#define ALIGN(n) __attribute__((aligned(n)))
|
#define ALIGN(n) __attribute__((aligned(n)))
|
||||||
#define rt_inline static __inline
|
#define rt_inline static __inline
|
||||||
#define RTT_API
|
#define RTT_API
|
||||||
|
|
||||||
#elif defined (__ICCM16C__) /* for IAR EW M16C Compiler */
|
|
||||||
#include <stdarg.h>
|
|
||||||
#define SECTION(x) @ x
|
|
||||||
#define UNUSED
|
|
||||||
#define rt_inline inline
|
|
||||||
#define RTT_API
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* event length */
|
/* event length */
|
||||||
|
|
Loading…
Reference in New Issue