diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2001-08-03 02:28:40 +0400 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2001-08-03 02:28:40 +0400 |
commit | a7061f7f5064648b795c5e6a3bb18dfd1bbca5a5 (patch) | |
tree | da2173ba1e65819945c9d2bccd052a8b1dad4767 /newlib | |
parent | 842c741f9821834c2a6220f0a704c30e214598b7 (diff) |
2001-08-02 Jeff Johnston <jjohnstn@redhat.com>
* libc/include/stdio.h (BUFSIZ): Define to __BUFSIZ__ if provided,
otherwise default.
Diffstat (limited to 'newlib')
-rw-r--r-- | newlib/ChangeLog | 5 | ||||
-rw-r--r-- | newlib/libc/include/stdio.h | 7 |
2 files changed, 11 insertions, 1 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 3adb3e0c1..4b7c859b7 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,8 @@ +2001-08-02 Jeff Johnston <jjohnstn@redhat.com> + + * libc/include/stdio.h (BUFSIZ): Define to __BUFSIZ__ if provided, + otherwise default. + 2001-07-12 Aldy Hernandez <aldyh@redhat.com> * libc/machine/mips/setjmp.S: Allow mips16 and mips64 to coexist. diff --git a/newlib/libc/include/stdio.h b/newlib/libc/include/stdio.h index a03dcb17f..9fb9451e4 100644 --- a/newlib/libc/include/stdio.h +++ b/newlib/libc/include/stdio.h @@ -87,9 +87,14 @@ typedef struct __sFILE FILE; #define NULL 0 #endif -#define BUFSIZ 1024 #define EOF (-1) +#ifdef __BUFSIZ__ +#define BUFSIZ __BUFSIZ__ +#else +#define BUFSIZ 1024 +#endif + #ifdef __FOPEN_MAX__ #define FOPEN_MAX __FOPEN_MAX__ #else |