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/8637/head
Michal Paszta 2018-10-24 14:35:25 +03:00 committed by Cruz Monrreal II
parent f6b9e5b23e
commit c81bb426a9
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