summaryrefslogtreecommitdiff
path: root/tests/bf
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bf')
-rw-r--r--tests/bf/bf.toc5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/bf/bf.toc b/tests/bf/bf.toc
index c2f9970..a3f731a 100644
--- a/tests/bf/bf.toc
+++ b/tests/bf/bf.toc
@@ -32,7 +32,10 @@ getstdin ::= fn() []char {
};
puti ::= fn(x: int) {
- #C("extern int printf(const char *fmt, ...)");
+ #C("#ifndef __TINYC__
+extern int printf(const char *fmt, ...);
+#endif
+");
#C("printf(\"%ld\\n\", x)");
};