aboutsummaryrefslogtreecommitdiff
path: root/libio
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-06-23 11:04:09 +0000
committerUlrich Drepper <drepper@redhat.com>1999-06-23 11:04:09 +0000
commit7df789e05906a883d03ed2cb2c400356350767cc (patch)
treeadd7f546a432615f01f0b1939fa20cc5b02ee67d /libio
parent1cc2b04ed7932364d53baf58d0730acbaa1b4bb7 (diff)
downloadglibc-7df789e05906a883d03ed2cb2c400356350767cc.zip
glibc-7df789e05906a883d03ed2cb2c400356350767cc.tar.gz
glibc-7df789e05906a883d03ed2cb2c400356350767cc.tar.bz2
Update.
1999-06-23 Zack Weinberg <zack@rabi.columbia.edu> * libio/stdio.h: Define stdin, stdout, stderr as macros. * math/complex.h: Don't define CX_LIMITED_RANGE_{ON,OFF,DEFAULT}. These are *pragmas* not macros. * wcsmbs/wchar.h: Fix comment. * grp/grp.h: Use __foo_t_defined convention to typedef things only once. * io/sys/stat.h: Likewise. * libio/stdio.h: Likewise. * posix/unistd.h: Likewise. * posix/sys/types.h: Likewise. * posix/sys/wait.h: Likewise. * pwd/pwd.h: Likewise. * signal/signal.h: Likewise. * sysdeps/generic/stdint.h: Likewise. * sysdeps/gnu/utmpx.h: Likewise. * termios/termios.h: Likewise.
Diffstat (limited to 'libio')
-rw-r--r--libio/stdio.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/libio/stdio.h b/libio/stdio.h
index 6056652..3c726c8 100644
--- a/libio/stdio.h
+++ b/libio/stdio.h
@@ -114,7 +114,10 @@ typedef _G_fpos64_t fpos64_t;
extern FILE *stdin; /* Standard input stream. */
extern FILE *stdout; /* Standard output stream. */
extern FILE *stderr; /* Standard error output stream. */
-
+/* C89/C9x say they're macros. Make them happy. */
+#define stdin stdin
+#define stdout stdout
+#define stderr stderr
/* Remove file FILENAME. */
extern int remove __P ((__const char *__filename));
@@ -468,18 +471,18 @@ extern void rewind __P ((FILE *__stream));
are originally defined in the Large File Support API. */
/* Types needed in these functions. */
-#ifndef off_t
+#ifndef __off_t_defined
# ifndef __USE_FILE_OFFSET64
typedef __off_t off_t;
# else
typedef __off64_t off_t;
# endif
-# define off_t off_t
+# define __off_t_defined
#endif
-#if defined __USE_LARGEFILE64 && !defined off64_t
+#if defined __USE_LARGEFILE64 && !defined __off64_t_defined
typedef __off64_t off64_t;
-# define off64_t off64_t
+# define __off64_t_defined
#endif