Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of gr-peach-opencv-project-sd-card by
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
