Mercurial > hg > octave-lojdl > gnulib-hg
changeset 2378:524f131fc113
(my_strftime): Make sure we call the system
strftime, not ourselves, when invoking the underlying strftime.
author | Jim Meyering <jim@meyering.net> |
---|---|
date | Mon, 03 Apr 2000 07:09:38 +0000 |
parents | c905538992aa |
children | 10da6ffc1e2b |
files | lib/strftime.c |
diffstat | 1 files changed, 8 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/strftime.c +++ b/lib/strftime.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991,92,93,94,95,96,97,98,99 Free Software Foundation, Inc. +/* Copyright (C) 1991-1999, 2000 Free Software Foundation, Inc. NOTE: The canonical source of this file is maintained with the GNU C Library. Bugs can be reported to bug-glibc@prep.ai.mit.edu. @@ -817,6 +817,13 @@ char *u = ufmt; char ubuf[1024]; /* enough for any single format in practice */ size_t len; + /* Make sure we're calling the actual underlying strftime. + In some cases, config.h contains something like + "#define strftime rpl_strftime". */ +# ifdef strftime +# undef strftime +# endif + *u++ = '%'; if (modifier != 0) *u++ = modifier;