annotate localtime_r.h @ 229:b0771ae979e3 libavformat

removed ctype.h header
author bellard
date Mon, 08 Sep 2003 20:04:44 +0000
parents a981594ba3b3
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
216
a981594ba3b3 fixing copyright header (the code is from strptime.c so the copyright header should be from there too instead of strptime.h)
michaelni
parents: 213
diff changeset
1 /* Convert a string representation of time to a time value.
a981594ba3b3 fixing copyright header (the code is from strptime.c so the copyright header should be from there too instead of strptime.h)
michaelni
parents: 213
diff changeset
2 Copyright (C) 1996, 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
a981594ba3b3 fixing copyright header (the code is from strptime.c so the copyright header should be from there too instead of strptime.h)
michaelni
parents: 213
diff changeset
3 This file is part of the GNU C Library.
a981594ba3b3 fixing copyright header (the code is from strptime.c so the copyright header should be from there too instead of strptime.h)
michaelni
parents: 213
diff changeset
4 Contributed by Ulrich Drepper <drepper@cygnus.com>, 1996.
a981594ba3b3 fixing copyright header (the code is from strptime.c so the copyright header should be from there too instead of strptime.h)
michaelni
parents: 213
diff changeset
5
a981594ba3b3 fixing copyright header (the code is from strptime.c so the copyright header should be from there too instead of strptime.h)
michaelni
parents: 213
diff changeset
6 The GNU C Library is free software; you can redistribute it and/or
a981594ba3b3 fixing copyright header (the code is from strptime.c so the copyright header should be from there too instead of strptime.h)
michaelni
parents: 213
diff changeset
7 modify it under the terms of the GNU Library General Public License as
a981594ba3b3 fixing copyright header (the code is from strptime.c so the copyright header should be from there too instead of strptime.h)
michaelni
parents: 213
diff changeset
8 published by the Free Software Foundation; either version 2 of the
a981594ba3b3 fixing copyright header (the code is from strptime.c so the copyright header should be from there too instead of strptime.h)
michaelni
parents: 213
diff changeset
9 License, or (at your option) any later version.
a981594ba3b3 fixing copyright header (the code is from strptime.c so the copyright header should be from there too instead of strptime.h)
michaelni
parents: 213
diff changeset
10
a981594ba3b3 fixing copyright header (the code is from strptime.c so the copyright header should be from there too instead of strptime.h)
michaelni
parents: 213
diff changeset
11 The GNU C Library is distributed in the hope that it will be useful,
a981594ba3b3 fixing copyright header (the code is from strptime.c so the copyright header should be from there too instead of strptime.h)
michaelni
parents: 213
diff changeset
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
a981594ba3b3 fixing copyright header (the code is from strptime.c so the copyright header should be from there too instead of strptime.h)
michaelni
parents: 213
diff changeset
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
a981594ba3b3 fixing copyright header (the code is from strptime.c so the copyright header should be from there too instead of strptime.h)
michaelni
parents: 213
diff changeset
14 Library General Public License for more details.
a981594ba3b3 fixing copyright header (the code is from strptime.c so the copyright header should be from there too instead of strptime.h)
michaelni
parents: 213
diff changeset
15
a981594ba3b3 fixing copyright header (the code is from strptime.c so the copyright header should be from there too instead of strptime.h)
michaelni
parents: 213
diff changeset
16 You should have received a copy of the GNU Library General Public
a981594ba3b3 fixing copyright header (the code is from strptime.c so the copyright header should be from there too instead of strptime.h)
michaelni
parents: 213
diff changeset
17 License along with the GNU C Library; see the file COPYING.LIB. If not,
a981594ba3b3 fixing copyright header (the code is from strptime.c so the copyright header should be from there too instead of strptime.h)
michaelni
parents: 213
diff changeset
18 write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
a981594ba3b3 fixing copyright header (the code is from strptime.c so the copyright header should be from there too instead of strptime.h)
michaelni
parents: 213
diff changeset
19 Boston, MA 02111-1307, USA. */
213
89a78842f6c2 localtime_r patch by (Glenn Maynard <g_sf at zewt dot org>)
michaelni
parents:
diff changeset
20
89a78842f6c2 localtime_r patch by (Glenn Maynard <g_sf at zewt dot org>)
michaelni
parents:
diff changeset
21 #ifndef __LOCALTIME_R_H__
89a78842f6c2 localtime_r patch by (Glenn Maynard <g_sf at zewt dot org>)
michaelni
parents:
diff changeset
22 #define __LOCALTIME_R_H__
89a78842f6c2 localtime_r patch by (Glenn Maynard <g_sf at zewt dot org>)
michaelni
parents:
diff changeset
23
89a78842f6c2 localtime_r patch by (Glenn Maynard <g_sf at zewt dot org>)
michaelni
parents:
diff changeset
24 /*
89a78842f6c2 localtime_r patch by (Glenn Maynard <g_sf at zewt dot org>)
michaelni
parents:
diff changeset
25 * Version of "localtime_r()", for the benefit of OSes that don't have it.
89a78842f6c2 localtime_r patch by (Glenn Maynard <g_sf at zewt dot org>)
michaelni
parents:
diff changeset
26 */
89a78842f6c2 localtime_r patch by (Glenn Maynard <g_sf at zewt dot org>)
michaelni
parents:
diff changeset
27
89a78842f6c2 localtime_r patch by (Glenn Maynard <g_sf at zewt dot org>)
michaelni
parents:
diff changeset
28 #ifdef HAVE_CONFIG_H
89a78842f6c2 localtime_r patch by (Glenn Maynard <g_sf at zewt dot org>)
michaelni
parents:
diff changeset
29 # include "config.h"
89a78842f6c2 localtime_r patch by (Glenn Maynard <g_sf at zewt dot org>)
michaelni
parents:
diff changeset
30 #endif
89a78842f6c2 localtime_r patch by (Glenn Maynard <g_sf at zewt dot org>)
michaelni
parents:
diff changeset
31
89a78842f6c2 localtime_r patch by (Glenn Maynard <g_sf at zewt dot org>)
michaelni
parents:
diff changeset
32 #if !defined(HAVE_LOCALTIME_R)
89a78842f6c2 localtime_r patch by (Glenn Maynard <g_sf at zewt dot org>)
michaelni
parents:
diff changeset
33 #include <time.h>
89a78842f6c2 localtime_r patch by (Glenn Maynard <g_sf at zewt dot org>)
michaelni
parents:
diff changeset
34 /* Approximate localtime_r as best we can in its absence. */
89a78842f6c2 localtime_r patch by (Glenn Maynard <g_sf at zewt dot org>)
michaelni
parents:
diff changeset
35 # define localtime_r my_localtime_r
89a78842f6c2 localtime_r patch by (Glenn Maynard <g_sf at zewt dot org>)
michaelni
parents:
diff changeset
36 extern struct tm *localtime_r(const time_t *, struct tm *);
89a78842f6c2 localtime_r patch by (Glenn Maynard <g_sf at zewt dot org>)
michaelni
parents:
diff changeset
37 #endif
89a78842f6c2 localtime_r patch by (Glenn Maynard <g_sf at zewt dot org>)
michaelni
parents:
diff changeset
38
89a78842f6c2 localtime_r patch by (Glenn Maynard <g_sf at zewt dot org>)
michaelni
parents:
diff changeset
39 #endif