From: Richard Stallman Date: Mon, 23 Nov 1992 22:46:14 +0000 (+0000) Subject: (FREAD, FWRITE): Undef these macros if they were defined X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=033ba47ced0e394eb39718e7285ae295ef4fc145;p=gcc.git (FREAD, FWRITE): Undef these macros if they were defined before including ldfcn.h. From-SVN: r2780 --- diff --git a/gcc/collect2.c b/gcc/collect2.c index 4b20174f21b..70c14ec38fb 100644 --- a/gcc/collect2.c +++ b/gcc/collect2.c @@ -103,7 +103,8 @@ extern int errno; ((magic) == U802WRMAGIC || (magic) == U802ROMAGIC || (magic) == U802TOCMAGIC) #endif -#if defined (_AIX) || defined (USG) +/* Many versions of ldfcn.h define these. */ +#ifdef FREAD #undef FREAD #undef FWRITE #endif