X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Ftimegm.c;h=badd39cfd8a2d11dcfbae2ea03640be9cce25728;hb=91fd3b18b755b77c4bb3f7556ddedb055c16c834;hp=82f904a6bfeff035e23a949c88745d46662a89e6;hpb=267a39bafd249d7eb9c37df06dc6defcf41cb343;p=gnulib.git diff --git a/lib/timegm.c b/lib/timegm.c index 82f904a6b..badd39cfd 100644 --- a/lib/timegm.c +++ b/lib/timegm.c @@ -1,7 +1,7 @@ /* Convert UTC calendar time to simple time. Like mktime but assumes UTC. - Copyright (C) 1994, 1997, 2003, 2004 Free Software Foundation, Inc. - This file is part of the GNU C Library. + Copyright (C) 1994, 1997, 2003, 2004, 2006, 2007, 2009, 2010 Free Software + Foundation, Inc. This file is part of the GNU C Library. 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 @@ -17,21 +17,17 @@ along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifdef HAVE_CONFIG_H +#ifndef _LIBC # include #endif -#ifdef _LIBC -# include -#else -# include "timegm.h" -# include +#include + +#ifndef _LIBC # undef __gmtime_r # define __gmtime_r gmtime_r # define __mktime_internal mktime_internal -time_t __mktime_internal (struct tm *, - struct tm * (*) (time_t const *, struct tm *), - time_t *); +# include "mktime-internal.h" #endif time_t