From ac2db7cc06f1f3b15f826a6b5821f8db477796b5 Mon Sep 17 00:00:00 2001 From: Przemyslaw Stekiel Date: Thu, 9 Aug 2018 08:31:39 +0200 Subject: [PATCH] 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. --- rtos/Mutex.h | 1 + 1 file changed, 1 insertion(+) diff --git a/rtos/Mutex.h b/rtos/Mutex.h index 4c738b7e7b..1b2b106bc4 100644 --- a/rtos/Mutex.h +++ b/rtos/Mutex.h @@ -29,6 +29,7 @@ #include "platform/NonCopyable.h" #include "platform/ScopedLock.h" +#include "platform/mbed_toolchain.h" namespace rtos { /** \addtogroup rtos */