aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2001-08-02 22:28:40 +0000
committerJeff Johnston <jjohnstn@redhat.com>2001-08-02 22:28:40 +0000
commita7061f7f5064648b795c5e6a3bb18dfd1bbca5a5 (patch)
treeda2173ba1e65819945c9d2bccd052a8b1dad4767
parent842c741f9821834c2a6220f0a704c30e214598b7 (diff)
downloadnewlib-a7061f7f5064648b795c5e6a3bb18dfd1bbca5a5.zip
newlib-a7061f7f5064648b795c5e6a3bb18dfd1bbca5a5.tar.gz
newlib-a7061f7f5064648b795c5e6a3bb18dfd1bbca5a5.tar.bz2
2001-08-02 Jeff Johnston <jjohnstn@redhat.com>
* libc/include/stdio.h (BUFSIZ): Define to __BUFSIZ__ if provided, otherwise default.
-rw-r--r--newlib/ChangeLog5
-rw-r--r--newlib/libc/include/stdio.h7
2 files changed, 11 insertions, 1 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog
index 3adb3e0..4b7c859 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 a03dcb1..9fb9451 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