aboutsummaryrefslogtreecommitdiff
path: root/src/stdlib/print.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-04-15 11:05:41 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-04-15 11:05:41 -0400
commit2d81cd41e190f106645e905cf5ec356c30c5e1a8 (patch)
tree516c02934c48f6e77869e708211bbdad96e44f64 /src/stdlib/print.h
parent4a604a298c0cde9667c483e93106a209b4cd3055 (diff)
Bring back TCC support!
Diffstat (limited to 'src/stdlib/print.h')
-rw-r--r--src/stdlib/print.h4
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;