X-Git-Url: https://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fstdio--.h;h=fe6d83edc4b122976e4fcd0692dc359df357d0d6;hb=fd27e50d9f01023121aa5d01fb24d8e7dd39392a;hp=eafbdb127b6db9fb69dc807140fbc76f2039aa65;hpb=fb8c836ade0d4ab8050c2c381795ce098b701115;p=gnulib.git diff --git a/lib/stdio--.h b/lib/stdio--.h index eafbdb127..fe6d83edc 100644 --- a/lib/stdio--.h +++ b/lib/stdio--.h @@ -1,6 +1,6 @@ /* Like stdio.h, but redefine some names to avoid glitches. - Copyright (C) 2005, 2006, 2009 Free Software Foundation, Inc. + Copyright (C) 2005-2006, 2009-2013 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -25,7 +25,17 @@ # define fopen fopen_safer #endif +#if GNULIB_FREOPEN_SAFER +# undef freopen +# define freopen freopen_safer +#endif + #if GNULIB_TMPFILE_SAFER # undef tmpfile # define tmpfile tmpfile_safer #endif + +#if GNULIB_POPEN_SAFER +# undef popen +# define popen popen_safer +#endif