From fb8c08ca7c3905ade8c7817d13df766859e8b051 Mon Sep 17 00:00:00 2001 From: maralvira Date: Mon, 17 Jan 2011 15:42:24 +0000 Subject: [PATCH] only use these stubs with linux toolchains --- cpu/mc1322x/tests/printf.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cpu/mc1322x/tests/printf.c b/cpu/mc1322x/tests/printf.c index c54f17d87..4b2ff340c 100644 --- a/cpu/mc1322x/tests/printf.c +++ b/cpu/mc1322x/tests/printf.c @@ -30,7 +30,7 @@ * This file is part of libmc1322x: see http://mc1322x.devl.org * for details. * - * $Id: printf.c,v 1.1 2010/06/10 14:55:39 maralvira Exp $ + * $Id: printf.c,v 1.2 2011/01/17 15:42:24 maralvira Exp $ */ #include @@ -48,6 +48,7 @@ printf("): %d\n", sizeof(x)); \ } while(0) +#if (__linux__) FILE *stderr; void __assert_fail(void) { @@ -59,9 +60,10 @@ int fputs(const char *s, FILE *stream) { } size_t fwrite(const void *ptr, size_t size, size_t nmemb, - FILE *stream) { + FILE *stream) { return 0; } +#endif int main(void) {