From 3ce1f2959437e952b9db4eaeed2407424f11a4d1 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sat, 10 Sep 2011 14:34:15 -0400 Subject: Cleanup of configuration options Make several tool features mandatory and simplify the code. --- stdio-common/tmpfile.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'stdio-common/tmpfile.c') diff --git a/stdio-common/tmpfile.c b/stdio-common/tmpfile.c index 69963fd..b1507ae 100644 --- a/stdio-common/tmpfile.c +++ b/stdio-common/tmpfile.c @@ -1,5 +1,5 @@ /* Open a stdio stream on an anonymous temporary file. Generic/POSIX version. - Copyright (C) 1991,1993,1996-2000,2002,2003,2007,2009 + Copyright (C) 1991,1993,1996-2000,2002,2003,2007,2009,2011 Free Software Foundation, Inc. This file is part of the GNU C Library. @@ -22,12 +22,10 @@ #include #include -#ifdef USE_IN_LIBIO -# include -# define __fdopen INTUSE(_IO_fdopen) -# ifndef tmpfile -# define tmpfile __new_tmpfile -# endif +#include +#define __fdopen INTUSE(_IO_fdopen) +#ifndef tmpfile +# define tmpfile __new_tmpfile #endif @@ -62,7 +60,7 @@ tmpfile (void) return f; } -#if defined USE_IN_LIBIO && !defined FLAGS /* Not for tmpfile64. */ +#ifndef FLAGS /* Not for tmpfile64. */ # undef tmpfile # include versioned_symbol (libc, __new_tmpfile, tmpfile, GLIBC_2_1); -- cgit v1.1