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/8637/head
parent
f6b9e5b23e
commit
c81bb426a9
|
@ -144,6 +144,8 @@
|
||||||
#ifndef MBED_WEAK
|
#ifndef MBED_WEAK
|
||||||
#if defined(__ICCARM__)
|
#if defined(__ICCARM__)
|
||||||
#define MBED_WEAK __weak
|
#define MBED_WEAK __weak
|
||||||
|
#elif defined(__MINGW32__)
|
||||||
|
#define MBED_WEAK
|
||||||
#else
|
#else
|
||||||
#define MBED_WEAK __attribute__((weak))
|
#define MBED_WEAK __attribute__((weak))
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue