diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2022-05-04 10:10:48 +0200 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2022-05-04 15:08:53 +0200 |
commit | 357d7fcc6ad1b0660e2b3131d09eb22e2559e46d (patch) | |
tree | c8c9411d61d0e73b17411544cab391a894bc5691 /newlib/libc | |
parent | a404165959f9fcadf690fb40aabc2364bc2b4e4e (diff) | |
download | newlib-357d7fcc6ad1b0660e2b3131d09eb22e2559e46d.zip newlib-357d7fcc6ad1b0660e2b3131d09eb22e2559e46d.tar.gz newlib-357d7fcc6ad1b0660e2b3131d09eb22e2559e46d.tar.bz2 |
In <stdio.h> provide only necessary types
Diffstat (limited to 'newlib/libc')
-rw-r--r-- | newlib/libc/include/stdio.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/newlib/libc/include/stdio.h b/newlib/libc/include/stdio.h index 7748351..b995b56 100644 --- a/newlib/libc/include/stdio.h +++ b/newlib/libc/include/stdio.h @@ -58,7 +58,7 @@ typedef __gnuc_va_list va_list; */ #include <sys/reent.h> -#include <sys/types.h> +#include <sys/_types.h> _BEGIN_STD_C @@ -76,6 +76,16 @@ typedef _fpos64_t fpos64_t; #endif #endif /* !__CYGWIN__ */ +#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 <sys/stdio.h> #define __SLBF 0x0001 /* line buffered */ |