Change MBED_DEPRECATED def order to support Keil 4

pull/3250/head
micromint 2016-11-09 16:16:55 -04:00 committed by Jimmy Brisson
parent 7963e8e7c1
commit 809b20738e
1 changed files with 3 additions and 3 deletions

View File

@ -220,10 +220,10 @@
* @endcode
*/
#ifndef MBED_DEPRECATED
#if defined(__GNUC__) || defined(__clang__)
#define MBED_DEPRECATED(M) __attribute__((deprecated(M)))
#elif defined(__CC_ARM)
#if defined(__CC_ARM)
#define MBED_DEPRECATED(M) __attribute__((deprecated))
#elif defined(__GNUC__) || defined(__clang__)
#define MBED_DEPRECATED(M) __attribute__((deprecated(M)))
#else
#define MBED_DEPRECATED(M)
#endif