From 2d81cd41e190f106645e905cf5ec356c30c5e1a8 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Tue, 15 Apr 2025 11:05:41 -0400 Subject: Bring back TCC support! --- src/stdlib/print.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/stdlib/print.h') 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; -- cgit v1.2.3