Skip to content

Commit 1bd4e01

Browse files
committed
Force callback non-trivial for IAR
1 parent 9a8c9e2 commit 1bd4e01

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

platform/Callback.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,13 @@
3030
// MBED_CONF_PLATFORM_CALLBACK_NONTRIVIAL - support storing non-trivial function objects
3131
// MBED_CONF_PLATFORM_CALLBACK_COMPARABLE - support memcmp comparing stored objects (requires zero padding)
3232

33+
#ifdef __ICCARM__
34+
/* Force callback.non-trivial for IAR */
35+
#undef MBED_CONF_PLATFORM_CALLBACK_NONTRIVIAL
36+
#define MBED_CONF_PLATFORM_CALLBACK_NONTRIVIAL 1
37+
#endif
38+
39+
3340
namespace mbed {
3441
/** \addtogroup platform-public-api */
3542
/** @{*/

0 commit comments

Comments
 (0)