fix STRINGIFY redefining issue

pull/4438/head
Yuguo Zou 2017-06-02 19:19:04 +08:00 committed by Martin Kojtal
parent fdea7b146c
commit 3c3a9a67fe
2 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@
#if defined (__ICCARM__)
#ifndef STRINGIFY
#define STRINGIFY(s) #s
#define STRINGIFY(a) #a
#endif
#ifndef SECTION
#define SECTION(_name) _Pragma( STRINGIFY(location=##_name##))

View File

@ -191,7 +191,7 @@ typedef __kernel_ssize_t SSIZE_T;
#endif
#if defined (__ICCARM__)
#define STRINGIFY(s) #s
#define STRINGIFY(a) #a
#define SECTION(_name) _Pragma( STRINGIFY(location=_name))
#define ALIGNMTO(_bound) _Pragma( STRINGIFY(data_alignment=_bound))
#define _PACKED_ __packed