X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fstdio--.h;h=b8323089636ca425befb94defbeb29092aac418f;hb=2c35d5c11d2359c7ebb06a3388a544cbe2f9c7f5;hp=ca3233e1813a8bba651d7f509a1671d8cf2550c8;hpb=111cf856170ccb69de8a3232814cd28e2ba22ffa;p=gnulib.git diff --git a/lib/stdio--.h b/lib/stdio--.h index ca3233e18..b83230896 100644 --- a/lib/stdio--.h +++ b/lib/stdio--.h @@ -1,11 +1,11 @@ /* Like stdio.h, but redefine some names to avoid glitches. - Copyright (C) 2005, 2006 Free Software Foundation, Inc. + Copyright (C) 2005-2006, 2009-2010 Free Software Foundation, Inc. - This program is free software; you can redistribute it and/or modify + 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 - the Free Software Foundation; either version 2, or (at your option) - any later version. + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -13,16 +13,29 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + along with this program. If not, see . */ /* Written by Paul Eggert. */ #include #include "stdio-safer.h" -#undef fopen -#define fopen fopen_safer - -#undef tmpfile -#define tmpfile tmpfile-safer +#if GNULIB_FOPEN_SAFER +# undef fopen +# 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