Skip to content

Commit 950a68f

Browse files
authored
define __force_inline in host compiles (#2396)
1 parent 5912699 commit 950a68f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/host/pico_platform/include/pico/platform.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,12 @@ extern void tight_loop_contents();
6060
#define __noinline __attribute__((noinline))
6161
#endif
6262

63+
#ifndef __force_inline
64+
// don't think it is critical to inline in host mode, and this is simpler than picking the
65+
// correct attribute incantation for always_inline on different compiler versions
66+
#define __force_inline inline
67+
#endif
68+
6369
#ifndef __aligned
6470
#define __aligned(x) __attribute__((aligned(x)))
6571
#endif

0 commit comments

Comments
 (0)