Skip to content

Commit ac2db7c

Browse files
committed
Mutex: fixing missing include
Macro MBED_DEPRECATED_SINCE is defined in platform/mbed_toolchain.h which was not included. If someone used member functions lock (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 6a5062c commit ac2db7c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

rtos/Mutex.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929

3030
#include "platform/NonCopyable.h"
3131
#include "platform/ScopedLock.h"
32+
#include "platform/mbed_toolchain.h"
3233

3334
namespace rtos {
3435
/** \addtogroup rtos */

0 commit comments

Comments
 (0)