moved here from the newlib branch
[platform/upstream/curl.git] / lib / getdate.h
1 /*
2 **  Originally written by Steven M. Bellovin <smb@research.att.com> while
3 **  at the University of North Carolina at Chapel Hill.  Later tweaked by
4 **  a couple of people on Usenet.  Completely overhauled by Rich $alz
5 **  <rsalz@bbn.com> and Jim Berets <jberets@bbn.com> in August, 1990.
6 **
7 **  This code is in the public domain and has no copyright.
8 */
9
10 #if HAVE_CONFIG_H
11 # include <config.h>
12 #endif
13
14 #ifndef PARAMS
15 # if defined PROTOTYPES || (defined __STDC__ && __STDC__)
16 #  define PARAMS(Args) Args
17 # else
18 #  define PARAMS(Args) ()
19 # endif
20 #endif
21
22 #ifdef vms
23 # include <types.h>
24 # include <time.h>
25 #else
26 # include <sys/types.h>
27 # if TIME_WITH_SYS_TIME
28 #  include <sys/time.h>
29 #  include <time.h>
30 # else
31 #  if HAVE_SYS_TIME_H
32 #   include <sys/time.h>
33 #  else
34 #   include <time.h>
35 #  endif
36 # endif
37 #endif /* defined (vms) */
38
39 time_t curl_getdate PARAMS ((const char *p, const time_t *now));