From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2155) id 7D76B3856DD3; Wed, 4 May 2022 13:49:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7D76B3856DD3 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Corinna Vinschen To: newlib-cvs@sourceware.org Subject: [newlib-cygwin] In provide only necessary types X-Act-Checkin: newlib-cygwin X-Git-Author: Sebastian Huber X-Git-Refname: refs/heads/master X-Git-Oldrev: a404165959f9fcadf690fb40aabc2364bc2b4e4e X-Git-Newrev: 357d7fcc6ad1b0660e2b3131d09eb22e2559e46d Message-Id: <20220504134941.7D76B3856DD3@sourceware.org> Date: Wed, 4 May 2022 13:49:41 +0000 (GMT) X-BeenThere: newlib-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Newlib GIT logs List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 May 2022 13:49:41 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dnewlib-cygwin.git;h=3D357d7fcc6ad= 1b0660e2b3131d09eb22e2559e46d commit 357d7fcc6ad1b0660e2b3131d09eb22e2559e46d Author: Sebastian Huber Date: Wed May 4 10:10:48 2022 +0200 In provide only necessary types Diff: --- newlib/libc/include/stdio.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/newlib/libc/include/stdio.h b/newlib/libc/include/stdio.h index 7748351f0..b995b56d2 100644 --- a/newlib/libc/include/stdio.h +++ b/newlib/libc/include/stdio.h @@ -58,7 +58,7 @@ typedef __gnuc_va_list va_list; */ =20 #include -#include +#include =20 _BEGIN_STD_C =20 @@ -76,6 +76,16 @@ typedef _fpos64_t fpos64_t; #endif #endif /* !__CYGWIN__ */ =20 +#ifndef _OFF_T_DECLARED +typedef __off_t off_t; +#define _OFF_T_DECLARED +#endif + +#ifndef _SSIZE_T_DECLARED +typedef _ssize_t ssize_t; +#define _SSIZE_T_DECLARED +#endif + #include =20 #define __SLBF 0x0001 /* line buffered */