summaryrefslogtreecommitdiff
path: root/gcc/system.h
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 /gcc/system.h
parent0c539b470c662e85e63a78add134f933ab6efa0f (diff)
downloadgcc-d4d798a3717d7ba938eab6d98b87b07242a6dc13.tar.gz
system.h (fopen): Undefine if macro.
* system.h (fopen): Undefine if macro. From-SVN: r150132
Diffstat (limited to 'gcc/system.h')
-rw-r--r--gcc/system.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/system.h b/gcc/system.h
index 51dcf54c1d8..7a9ca816693 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)