diff options
author | Richard Stallman <rms@gnu.org> | 1992-10-27 22:53:58 +0000 |
---|---|---|
committer | Richard Stallman <rms@gnu.org> | 1992-10-27 22:53:58 +0000 |
commit | fffa69145b1f83057e67b0b6decedde455f1a48a (patch) | |
tree | 853e9ed8ac1749285cf3d90f4db198c366ad7ee6 /gcc | |
parent | c5bf1a720bbc8d291577646974f29990dfdec0fe (diff) | |
download | gcc-fffa69145b1f83057e67b0b6decedde455f1a48a.zip gcc-fffa69145b1f83057e67b0b6decedde455f1a48a.tar.gz gcc-fffa69145b1f83057e67b0b6decedde455f1a48a.tar.bz2 |
Include stdio.h.
[__GNU_LIBRARY__] (write): Defined.
From-SVN: r2625
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/libgcc2.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/libgcc2.c b/gcc/libgcc2.c index e4aa084..fd27c95 100644 --- a/gcc/libgcc2.c +++ b/gcc/libgcc2.c @@ -1224,6 +1224,16 @@ __builtin_new (sz) #endif #ifdef L_caps_New + +/* This gets us __GNU_LIBRARY__. */ +#include <stdio.h> + +#ifdef __GNU_LIBRARY__ + /* Avoid forcing the library's meaning of `write' on the user program + by using the "internal" name (for use within the library) +#define write(fd, buf, n) __write((fd), (buf), (n)) +#endif + typedef void (*vfp)(void); extern void *__builtin_new (size_t); |