Skip to content

Commit 0b3593f

Browse files
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.
1 parent 5b25b66 commit 0b3593f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

platform/mbed_toolchain.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,8 @@
144144
#ifndef MBED_WEAK
145145
#if defined(__ICCARM__)
146146
#define MBED_WEAK __weak
147+
#elif defined(__MINGW32__)
148+
#define MBED_WEAK
147149
#else
148150
#define MBED_WEAK __attribute__((weak))
149151
#endif

0 commit comments

Comments
 (0)