diff options
Diffstat (limited to 'src/stdlib/print.h')
| -rw-r--r-- | src/stdlib/print.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/stdlib/print.h b/src/stdlib/print.h index 60c9c139..243826e0 100644 --- a/src/stdlib/print.h +++ b/src/stdlib/print.h @@ -33,8 +33,12 @@ // GCC lets you define macro-like functions which are always inlined and never // compiled using this combination of flags. See: https://gcc.gnu.org/onlinedocs/gcc/Inline.html #ifndef PRINT_FN +#ifdef __TINYC__ +#define PRINT_FN static inline __attribute__((gnu_inline, always_inline)) int +#else #define PRINT_FN extern inline __attribute__((gnu_inline, always_inline)) int #endif +#endif typedef struct { uint64_t n; |
