aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouglas B Rupp <rupp@gnat.com>2009-07-27 17:36:08 +0000
committerDouglas Rupp <rupp@gcc.gnu.org>2009-07-27 17:36:08 +0000
commitd4d798a3717d7ba938eab6d98b87b07242a6dc13 (patch)
tree0ac6e173cb2d91c7531020376043b08484756661
parent0c539b470c662e85e63a78add134f933ab6efa0f (diff)
downloadgcc-d4d798a3717d7ba938eab6d98b87b07242a6dc13.zip
gcc-d4d798a3717d7ba938eab6d98b87b07242a6dc13.tar.gz
gcc-d4d798a3717d7ba938eab6d98b87b07242a6dc13.tar.bz2
system.h (fopen): Undefine if macro.
* system.h (fopen): Undefine if macro. From-SVN: r150132
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/system.h6
2 files changed, 9 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 101c42e..97d5555 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2009-07-27 Douglas B Rupp <rupp@gnat.com>
+
+ * system.h (fopen): Undefine if macro.
+
2009-07-27 Jakub Jelinek <jakub@redhat.com>
* dwarf2out.c (output_cfi_p): Removed.
diff --git a/gcc/system.h b/gcc/system.h
index 51dcf54..7a9ca81 100644
--- a/gcc/system.h
+++ b/gcc/system.h
@@ -1,6 +1,7 @@
/* Get common system includes and various definitions and declarations based
on autoconf macros.
- Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007, 2008
+ Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007, 2008,
+ 2009
Free Software Foundation, Inc.
This file is part of GCC.
@@ -46,6 +47,9 @@ along with GCC; see the file COPYING3. If not see
#endif
/* Use the unlocked open routines from libiberty. */
+#ifdef fopen /* fopen is a #define on VMS. */
+#undef fopen
+#endif
#define fopen(PATH,MODE) fopen_unlocked(PATH,MODE)
#define fdopen(FILDES,MODE) fdopen_unlocked(FILDES,MODE)
#define freopen(PATH,MODE,STREAM) freopen_unlocked(PATH,MODE,STREAM)