From: Richard Stallman Date: Tue, 27 Oct 1992 22:53:58 +0000 (+0000) Subject: Include stdio.h. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fffa69145b1f83057e67b0b6decedde455f1a48a;p=gcc.git Include stdio.h. [__GNU_LIBRARY__] (write): Defined. From-SVN: r2625 --- diff --git a/gcc/libgcc2.c b/gcc/libgcc2.c index e4aa084a3f3..fd27c953476 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 + +#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);