1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-04-20 02:36:16 +02:00
Files
coreutils/lib/getdate.h

47 lines
1.3 KiB
C
Raw Normal View History

/* Copyright (C) 1995, 1997, 1998 Free Software Foundation, Inc.
1998-03-14 16:30:52 +00:00
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
1998-03-14 19:53:21 +00:00
#if HAVE_CONFIG_H
1998-03-14 16:30:52 +00:00
# include <config.h>
#endif
#ifndef PARAMS
# if defined PROTOTYPES || (defined __STDC__ && __STDC__)
1998-03-14 19:53:21 +00:00
# define PARAMS(Args) Args
1998-03-14 16:30:52 +00:00
# else
1998-03-14 19:53:21 +00:00
# define PARAMS(Args) ()
1998-03-14 16:30:52 +00:00
# endif
#endif
1998-03-14 19:53:21 +00:00
#ifdef vms
1998-03-14 16:30:52 +00:00
# include <types.h>
# include <time.h>
#else
# include <sys/types.h>
1998-03-14 19:53:21 +00:00
# if TIME_WITH_SYS_TIME
1998-03-14 16:30:52 +00:00
# include <sys/time.h>
# include <time.h>
# else
1998-03-14 19:53:21 +00:00
# if HAVE_SYS_TIME_H
1998-03-14 16:30:52 +00:00
# include <sys/time.h>
# else
# include <time.h>
# endif
# endif
#endif /* defined (vms) */
time_t get_date PARAMS ((const char *p, const time_t *now));