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.
pull/5912/head
Michael Kaplan 2018-01-24 08:10:35 +01:00
parent f1cf77fa44
commit b3a9af49b8
1 changed files with 1 additions and 0 deletions

View File

@ -19,6 +19,7 @@
#define MBED_CRITICALSECTIONLOCK_H
#include "platform/mbed_critical.h"
#include "platform/mbed_toolchain.h"
namespace mbed {