comparison src/strftime.c @ 51234:4458f91cfb2b

(my_strftime_localtime_r): Remove `defined but unused' warning.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Sun, 25 May 2003 17:44:14 +0000
parents a1fef23ccede
children 73b3b97a1595
comparison
equal deleted inserted replaced
51233:41ed31a0fd49 51234:4458f91cfb2b
1 /* Copyright (C) 1991,92,93,94,95,96,97,98,99,2000 Free Software Foundation, Inc. 1 /* Copyright (C) 1991,92,93,94,95,96,97,98,99,2000,2003
2 Free Software Foundation, Inc.
3
2 This file is part of the GNU Emacs. 4 This file is part of the GNU Emacs.
3 5
4 The GNU C Library is free software; you can redistribute it and/or 6 The GNU C Library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public License as 7 modify it under the terms of the GNU Library General Public License as
6 published by the Free Software Foundation; either version 2 of the 8 published by the Free Software Foundation; either version 2 of the
196 if (! l) 198 if (! l)
197 return 0; 199 return 0;
198 *tp = *l; 200 *tp = *l;
199 return tp; 201 return tp;
200 } 202 }
201 # endif /* ! HAVE_TM_GMTOFF */
202 203
203 static struct tm *my_strftime_localtime_r __P ((const time_t *, struct tm *)); 204 static struct tm *my_strftime_localtime_r __P ((const time_t *, struct tm *));
204 static struct tm * 205 static struct tm *
205 my_strftime_localtime_r (t, tp) 206 my_strftime_localtime_r (t, tp)
206 const time_t *t; 207 const time_t *t;
210 if (! l) 211 if (! l)
211 return 0; 212 return 0;
212 *tp = *l; 213 *tp = *l;
213 return tp; 214 return tp;
214 } 215 }
216 # endif /* ! HAVE_TM_GMTOFF */
217
215 #endif /* ! defined _LIBC */ 218 #endif /* ! defined _LIBC */
216 219
217 220
218 #if !defined memset && !defined HAVE_MEMSET && !defined _LIBC 221 #if !defined memset && !defined HAVE_MEMSET && !defined _LIBC
219 /* Some systems lack the `memset' function and we don't want to 222 /* Some systems lack the `memset' function and we don't want to