mirror of https://github.com/ARMmbed/mbed-os.git
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
parent
5b25b6643d
commit
0b3593f576
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue