Fix for unit test build on Windows machines

In case MINGW is detected - define MBED_WEAK to be empty, as Windows
executables cannot handle the weak attribute.
pull/8526/head
Michal Paszta 2018-10-24 14:35:25 +03:00
parent 5b25b6643d
commit 0b3593f576
1 changed files with 2 additions and 0 deletions

View File

@ -144,6 +144,8 @@
#ifndef MBED_WEAK
#if defined(__ICCARM__)
#define MBED_WEAK __weak
#elif defined(__MINGW32__)
#define MBED_WEAK
#else
#define MBED_WEAK __attribute__((weak))
#endif