Skip to content

Commit 809b207

Browse files
microminttheotherjimmy
authored andcommitted
Change MBED_DEPRECATED def order to support Keil 4
1 parent 7963e8e commit 809b207

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

platform/toolchain.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -220,10 +220,10 @@
220220
* @endcode
221221
*/
222222
#ifndef MBED_DEPRECATED
223-
#if defined(__GNUC__) || defined(__clang__)
224-
#define MBED_DEPRECATED(M) __attribute__((deprecated(M)))
225-
#elif defined(__CC_ARM)
223+
#if defined(__CC_ARM)
226224
#define MBED_DEPRECATED(M) __attribute__((deprecated))
225+
#elif defined(__GNUC__) || defined(__clang__)
226+
#define MBED_DEPRECATED(M) __attribute__((deprecated(M)))
227227
#else
228228
#define MBED_DEPRECATED(M)
229229
#endif

0 commit comments

Comments
 (0)