Mercurial > libavformat.hg
annotate localtime_r.h @ 215:99f4032097e0 libavformat
Compile fix when no CONFIG_ENCODERS by (Glenn Maynard <g_sf at zewt dot org>)
author | michaelni |
---|---|
date | Thu, 04 Sep 2003 10:30:52 +0000 |
parents | 89a78842f6c2 |
children | a981594ba3b3 |
rev | line source |
---|---|
213
89a78842f6c2
localtime_r patch by (Glenn Maynard <g_sf at zewt dot org>)
michaelni
parents:
diff
changeset
|
1 /* strptime.h |
89a78842f6c2
localtime_r patch by (Glenn Maynard <g_sf at zewt dot org>)
michaelni
parents:
diff
changeset
|
2 * |
89a78842f6c2
localtime_r patch by (Glenn Maynard <g_sf at zewt dot org>)
michaelni
parents:
diff
changeset
|
3 * $Id$ |
89a78842f6c2
localtime_r patch by (Glenn Maynard <g_sf at zewt dot org>)
michaelni
parents:
diff
changeset
|
4 * |
89a78842f6c2
localtime_r patch by (Glenn Maynard <g_sf at zewt dot org>)
michaelni
parents:
diff
changeset
|
5 * Ethereal - Network traffic analyzer |
89a78842f6c2
localtime_r patch by (Glenn Maynard <g_sf at zewt dot org>)
michaelni
parents:
diff
changeset
|
6 * By Gerald Combs <gerald@ethereal.com> |
89a78842f6c2
localtime_r patch by (Glenn Maynard <g_sf at zewt dot org>)
michaelni
parents:
diff
changeset
|
7 * Copyright 1998 Gerald Combs |
89a78842f6c2
localtime_r patch by (Glenn Maynard <g_sf at zewt dot org>)
michaelni
parents:
diff
changeset
|
8 * |
89a78842f6c2
localtime_r patch by (Glenn Maynard <g_sf at zewt dot org>)
michaelni
parents:
diff
changeset
|
9 * This program is free software; you can redistribute it and/or |
89a78842f6c2
localtime_r patch by (Glenn Maynard <g_sf at zewt dot org>)
michaelni
parents:
diff
changeset
|
10 * modify it under the terms of the GNU General Public License |
89a78842f6c2
localtime_r patch by (Glenn Maynard <g_sf at zewt dot org>)
michaelni
parents:
diff
changeset
|
11 * as published by the Free Software Foundation; either version 2 |
89a78842f6c2
localtime_r patch by (Glenn Maynard <g_sf at zewt dot org>)
michaelni
parents:
diff
changeset
|
12 * of the License, or (at your option) any later version. |
89a78842f6c2
localtime_r patch by (Glenn Maynard <g_sf at zewt dot org>)
michaelni
parents:
diff
changeset
|
13 * |
89a78842f6c2
localtime_r patch by (Glenn Maynard <g_sf at zewt dot org>)
michaelni
parents:
diff
changeset
|
14 * This program is distributed in the hope that it will be useful, |
89a78842f6c2
localtime_r patch by (Glenn Maynard <g_sf at zewt dot org>)
michaelni
parents:
diff
changeset
|
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
89a78842f6c2
localtime_r patch by (Glenn Maynard <g_sf at zewt dot org>)
michaelni
parents:
diff
changeset
|
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
89a78842f6c2
localtime_r patch by (Glenn Maynard <g_sf at zewt dot org>)
michaelni
parents:
diff
changeset
|
17 * GNU General Public License for more details. |
89a78842f6c2
localtime_r patch by (Glenn Maynard <g_sf at zewt dot org>)
michaelni
parents:
diff
changeset
|
18 * |
89a78842f6c2
localtime_r patch by (Glenn Maynard <g_sf at zewt dot org>)
michaelni
parents:
diff
changeset
|
19 * You should have received a copy of the GNU General Public License |
89a78842f6c2
localtime_r patch by (Glenn Maynard <g_sf at zewt dot org>)
michaelni
parents:
diff
changeset
|
20 * along with this program; if not, write to the Free Software |
89a78842f6c2
localtime_r patch by (Glenn Maynard <g_sf at zewt dot org>)
michaelni
parents:
diff
changeset
|
21 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
89a78842f6c2
localtime_r patch by (Glenn Maynard <g_sf at zewt dot org>)
michaelni
parents:
diff
changeset
|
22 */ |
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 #ifndef __LOCALTIME_R_H__ |
89a78842f6c2
localtime_r patch by (Glenn Maynard <g_sf at zewt dot org>)
michaelni
parents:
diff
changeset
|
25 #define __LOCALTIME_R_H__ |
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 * 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
|
29 */ |
89a78842f6c2
localtime_r patch by (Glenn Maynard <g_sf at zewt dot org>)
michaelni
parents:
diff
changeset
|
30 |
89a78842f6c2
localtime_r patch by (Glenn Maynard <g_sf at zewt dot org>)
michaelni
parents:
diff
changeset
|
31 #ifdef HAVE_CONFIG_H |
89a78842f6c2
localtime_r patch by (Glenn Maynard <g_sf at zewt dot org>)
michaelni
parents:
diff
changeset
|
32 # include "config.h" |
89a78842f6c2
localtime_r patch by (Glenn Maynard <g_sf at zewt dot org>)
michaelni
parents:
diff
changeset
|
33 #endif |
89a78842f6c2
localtime_r patch by (Glenn Maynard <g_sf at zewt dot org>)
michaelni
parents:
diff
changeset
|
34 |
89a78842f6c2
localtime_r patch by (Glenn Maynard <g_sf at zewt dot org>)
michaelni
parents:
diff
changeset
|
35 #if !defined(HAVE_LOCALTIME_R) |
89a78842f6c2
localtime_r patch by (Glenn Maynard <g_sf at zewt dot org>)
michaelni
parents:
diff
changeset
|
36 #include <time.h> |
89a78842f6c2
localtime_r patch by (Glenn Maynard <g_sf at zewt dot org>)
michaelni
parents:
diff
changeset
|
37 /* 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
|
38 # define localtime_r my_localtime_r |
89a78842f6c2
localtime_r patch by (Glenn Maynard <g_sf at zewt dot org>)
michaelni
parents:
diff
changeset
|
39 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
|
40 #endif |
89a78842f6c2
localtime_r patch by (Glenn Maynard <g_sf at zewt dot org>)
michaelni
parents:
diff
changeset
|
41 |
89a78842f6c2
localtime_r patch by (Glenn Maynard <g_sf at zewt dot org>)
michaelni
parents:
diff
changeset
|
42 #endif |