(FREAD, FWRITE): Undef these macros if they were defined
authorRichard Stallman <rms@gnu.org>
Mon, 23 Nov 1992 22:46:14 +0000 (22:46 +0000)
committerRichard Stallman <rms@gnu.org>
Mon, 23 Nov 1992 22:46:14 +0000 (22:46 +0000)
before including ldfcn.h.

From-SVN: r2780

gcc/collect2.c

index 4b20174..70c14ec 100644 (file)
@@ -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