From c1380e88bb6d7fc170bd27fcb247db11d7c99606 Mon Sep 17 00:00:00 2001 From: Gyorgy Szombathelyi Date: Tue, 18 Dec 2018 22:37:46 +0100 Subject: [PATCH] Workaround removed newlib private macros --- syscalls.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/syscalls.c b/syscalls.c index 7722ee6..2f27e66 100644 --- a/syscalls.c +++ b/syscalls.c @@ -4,7 +4,6 @@ // http://balau82.wordpress.com/2011/09/03/using-codesourcery-bare-metal-toolchain-for-cortex-m3/ -#include <_ansi.h> #include #include #include @@ -22,6 +21,10 @@ #include "swi.h" #include "cdc_control.h" +#ifndef _PARAMS +#define _PARAMS(paramlist) paramlist +#endif + /* Forward prototypes. */ int _system _PARAMS ((const char *)); int _rename _PARAMS ((const char *, const char *)); @@ -63,7 +66,7 @@ register char * stack_ptr asm ("sp"); /* following is copied from libc/stdio/local.h to check std streams */ -extern void _EXFUN(__sinit,(struct _reent *)); +extern void __sinit (struct _reent *); #define CHECK_INIT(ptr) \ do \ { \