mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #3250 from theotherjimmy/ARM5.03-deprecation
Change MBED_DEPRECATED def order to support Keil 4pull/3241/head
commit
84f401bddf
|
@ -220,10 +220,10 @@
|
||||||
* @endcode
|
* @endcode
|
||||||
*/
|
*/
|
||||||
#ifndef MBED_DEPRECATED
|
#ifndef MBED_DEPRECATED
|
||||||
#if defined(__GNUC__) || defined(__clang__)
|
#if defined(__CC_ARM)
|
||||||
#define MBED_DEPRECATED(M) __attribute__((deprecated(M)))
|
|
||||||
#elif defined(__CC_ARM)
|
|
||||||
#define MBED_DEPRECATED(M) __attribute__((deprecated))
|
#define MBED_DEPRECATED(M) __attribute__((deprecated))
|
||||||
|
#elif defined(__GNUC__) || defined(__clang__)
|
||||||
|
#define MBED_DEPRECATED(M) __attribute__((deprecated(M)))
|
||||||
#else
|
#else
|
||||||
#define MBED_DEPRECATED(M)
|
#define MBED_DEPRECATED(M)
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue