mirror of https://github.com/ARMmbed/mbed-os.git
Change MBED_DEPRECATED def order to support Keil 4
parent
7963e8e7c1
commit
809b20738e
|
@ -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