diff --git a/components/newlib/newlib/README b/components/newlib/newlib/README index 0ac0ee06..bad05310 100644 --- a/components/newlib/newlib/README +++ b/components/newlib/newlib/README @@ -2,4 +2,4 @@ README Information of newlib is following: -commit: 19df868f +commit: 1fc9ee20 diff --git a/components/newlib/newlib/include/newlib.h b/components/newlib/newlib/include/newlib.h index 17278a81..33fa697e 100644 --- a/components/newlib/newlib/include/newlib.h +++ b/components/newlib/newlib/include/newlib.h @@ -69,7 +69,7 @@ /* #undef _UINTPTR_EQ_ULONGLONG */ /* Define if ivo supported in streamio. */ -/* #undef _FVWRITE_IN_STREAMIO */ +#define _FVWRITE_IN_STREAMIO 1 /* Define if fseek functions support seek optimization. */ #define _FSEEK_OPTIMIZATION 1 diff --git a/components/newlib/newlib/lib/libc.a b/components/newlib/newlib/lib/libc.a index d97d07ad..dc395119 100644 Binary files a/components/newlib/newlib/lib/libc.a and b/components/newlib/newlib/lib/libc.a differ diff --git a/components/newlib/newlib/lib/libc_nano.a b/components/newlib/newlib/lib/libc_nano.a index a7244b72..2ea789af 100644 Binary files a/components/newlib/newlib/lib/libc_nano.a and b/components/newlib/newlib/lib/libc_nano.a differ diff --git a/components/newlib/newlib/lib/libm.a b/components/newlib/newlib/lib/libm.a index 528919f6..f8d25c2c 100644 Binary files a/components/newlib/newlib/lib/libm.a and b/components/newlib/newlib/lib/libm.a differ diff --git a/components/newlib/newlib/port/fputc.c b/components/newlib/newlib/port/fputc.c deleted file mode 100644 index a5fada9a..00000000 --- a/components/newlib/newlib/port/fputc.c +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright 2018-2019 Espressif Systems (Shanghai) PTE LTD -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#include <_ansi.h> -#include <stdio.h> - -int _fputc_r(struct _reent *ptr, int ch, FILE *fp) -{ - return fp->_write(ptr, fp->_cookie, (char *)&ch, 1); -} - -int fputc(int ch, FILE *fp) -{ - return _fputc_r (_REENT, ch, fp); -}