From 809b20738e16213c552b94e677f35e007158d6e5 Mon Sep 17 00:00:00 2001 From: micromint Date: Wed, 9 Nov 2016 16:16:55 -0400 Subject: [PATCH] Change MBED_DEPRECATED def order to support Keil 4 --- platform/toolchain.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/platform/toolchain.h b/platform/toolchain.h index a36d60e153f..0a1bd7eb78d 100644 --- a/platform/toolchain.h +++ b/platform/toolchain.h @@ -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