Skip to content

Commit 84f401b

Browse files
authored
Merge pull request #3250 from theotherjimmy/ARM5.03-deprecation
Change MBED_DEPRECATED def order to support Keil 4
2 parents b6cc841 + 809b207 commit 84f401b

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)