Skip to content

Commit b3a9af4

Browse files
committed
CriticalSectionLock: fixing missing include
Macro MBED_DEPRECATED_SINCE is defined in platform/mbed_toolchain.h which was not included. If someone used member functions lock or unlock (which are prefixed with MBED_DEPRECATED_SINCE since some time), there would be a compile error instead of a warning. Including mbed_toolchain.h fixes that.
1 parent f1cf77f commit b3a9af4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

platform/CriticalSectionLock.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#define MBED_CRITICALSECTIONLOCK_H
2020

2121
#include "platform/mbed_critical.h"
22+
#include "platform/mbed_toolchain.h"
2223

2324
namespace mbed {
2425

0 commit comments

Comments
 (0)