From 650f6700d28802c44196299a57c0f958118abeef Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Wed, 12 Jun 2002 20:36:22 +0000 Subject: * sysdeps/generic/tmpfile.c [USE_IN_LIBIO] (tmpfile): Don't #define if already defined. [USE_IN_LIBIO]: Conditionalize versioned_symbol use on [GEN_THIS == __GT_FILE] so that tmpfile64.c's inclusion doesn't get it. --- sysdeps/generic/tmpfile.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'sysdeps/generic/tmpfile.c') diff --git a/sysdeps/generic/tmpfile.c b/sysdeps/generic/tmpfile.c index 051cb79abd..847a7446b3 100644 --- a/sysdeps/generic/tmpfile.c +++ b/sysdeps/generic/tmpfile.c @@ -23,7 +23,9 @@ #ifdef USE_IN_LIBIO # include # define __fdopen INTUSE(_IO_fdopen) -# define tmpfile __new_tmpfile +# ifndef tmpfile +# define tmpfile __new_tmpfile +# endif #endif #ifndef GEN_THIS @@ -57,7 +59,7 @@ tmpfile (void) return f; } -#ifdef USE_IN_LIBIO +#if defined USE_IN_LIBIO && GEN_THIS == __GT_FILE /* Not for tmpfile64. */ # undef tmpfile # include versioned_symbol (libc, __new_tmpfile, tmpfile, GLIBC_2_1); -- cgit 1.4.1