mirror of https://github.com/ARMmbed/mbed-os.git
fix STRINGIFY redefining issue
parent
fdea7b146c
commit
3c3a9a67fe
|
@ -18,7 +18,7 @@
|
||||||
|
|
||||||
#if defined (__ICCARM__)
|
#if defined (__ICCARM__)
|
||||||
#ifndef STRINGIFY
|
#ifndef STRINGIFY
|
||||||
#define STRINGIFY(s) #s
|
#define STRINGIFY(a) #a
|
||||||
#endif
|
#endif
|
||||||
#ifndef SECTION
|
#ifndef SECTION
|
||||||
#define SECTION(_name) _Pragma( STRINGIFY(location=##_name##))
|
#define SECTION(_name) _Pragma( STRINGIFY(location=##_name##))
|
||||||
|
|
|
@ -191,7 +191,7 @@ typedef __kernel_ssize_t SSIZE_T;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined (__ICCARM__)
|
#if defined (__ICCARM__)
|
||||||
#define STRINGIFY(s) #s
|
#define STRINGIFY(a) #a
|
||||||
#define SECTION(_name) _Pragma( STRINGIFY(location=_name))
|
#define SECTION(_name) _Pragma( STRINGIFY(location=_name))
|
||||||
#define ALIGNMTO(_bound) _Pragma( STRINGIFY(data_alignment=_bound))
|
#define ALIGNMTO(_bound) _Pragma( STRINGIFY(data_alignment=_bound))
|
||||||
#define _PACKED_ __packed
|
#define _PACKED_ __packed
|
||||||
|
|
Loading…
Reference in New Issue