Commit d4d798a3 by Douglas B Rupp Committed by Douglas Rupp

system.h (fopen): Undefine if macro.


	* system.h (fopen): Undefine if macro.

From-SVN: r150132
parent 0c539b47
2009-07-27 Douglas B Rupp <rupp@gnat.com>
* system.h (fopen): Undefine if macro.
2009-07-27 Jakub Jelinek <jakub@redhat.com> 2009-07-27 Jakub Jelinek <jakub@redhat.com>
* dwarf2out.c (output_cfi_p): Removed. * dwarf2out.c (output_cfi_p): Removed.
......
/* Get common system includes and various definitions and declarations based /* Get common system includes and various definitions and declarations based
on autoconf macros. 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. Free Software Foundation, Inc.
This file is part of GCC. This file is part of GCC.
...@@ -46,6 +47,9 @@ along with GCC; see the file COPYING3. If not see ...@@ -46,6 +47,9 @@ along with GCC; see the file COPYING3. If not see
#endif #endif
/* Use the unlocked open routines from libiberty. */ /* 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 fopen(PATH,MODE) fopen_unlocked(PATH,MODE)
#define fdopen(FILDES,MODE) fdopen_unlocked(FILDES,MODE) #define fdopen(FILDES,MODE) fdopen_unlocked(FILDES,MODE)
#define freopen(PATH,MODE,STREAM) freopen_unlocked(PATH,MODE,STREAM) #define freopen(PATH,MODE,STREAM) freopen_unlocked(PATH,MODE,STREAM)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment