mbed library sources, mbed-dev only for TYBLE16
Fork of mbed-dev by
Please refer flowing link.
/users/kenjiArai/notebook/tyble16-module-will-become-a-mbed-family--mbedliza/
Diff: platform/toolchain.h
- Revision:
- 151:5eaa88a5bcc7
- Parent:
- 149:156823d33999
- Child:
- 160:d5399cc887bb
--- a/platform/toolchain.h Tue Nov 08 17:45:16 2016 +0000 +++ b/platform/toolchain.h Thu Nov 24 17:03:03 2016 +0000 @@ -19,6 +19,8 @@ #ifndef MBED_TOOLCHAIN_H #define MBED_TOOLCHAIN_H +#include "mbed_preprocessor.h" + // Warning for unsupported compilers #if !defined(__GNUC__) /* GCC */ \ @@ -65,8 +67,7 @@ */ #ifndef MBED_ALIGN #if defined(__ICCARM__) -#define _MBED_ALIGN(N) _Pragma(#N) -#define MBED_ALIGN(N) _MBED_ALIGN(data_alignment=N) +#define MBED_ALIGN(N) _Pragma(MBED_STRINGIFY(data_alignment=N)) #else #define MBED_ALIGN(N) __attribute__((aligned(N))) #endif @@ -219,10 +220,10 @@ * @endcode */ #ifndef MBED_DEPRECATED -#if defined(__GNUC__) || defined(__clang__) +#if defined(__CC_ARM) +#define MBED_DEPRECATED(M) __attribute__((deprecated)) +#elif defined(__GNUC__) || defined(__clang__) #define MBED_DEPRECATED(M) __attribute__((deprecated(M))) -#elif defined(__CC_ARM) -#define MBED_DEPRECATED(M) __attribute__((deprecated)) #else #define MBED_DEPRECATED(M) #endif